source: roaraudio/build-system/Makefile.common @ 5878:3b92b0d6ef9b

Last change on this file since 5878:3b92b0d6ef9b was 5852:a28831539687, checked in by phi, 11 years ago

changed order of -g and -Wall

File size: 1.7 KB
Line 
1#     Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2012
2#
3# This file is part of roard a part of RoarAudio,
4# a cross-platform sound system for both, home and professional use.
5# See README for details.
6#
7# This file is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License version 3
9# as published by the Free Software Foundation.
10#
11# RoarAudio is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this software; see the file COPYING.  If not, write to
18# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19# Boston, MA 02110-1301, USA.
20
21OBJS        ?= $(BASENAME).o
22
23ifneq ($(origin BASENAME), undefined)
24DEFINES     += -DBASENAME="\"$(BASENAME)\""
25endif
26
27ifneq ($(origin LIBNAME), undefined)
28DEFINES     += -DROAR_DBG_PREFIX="\"$(LIBNAME)\""
29else
30ifneq ($(origin TARGET), undefined)
31DEFINES     += -DROAR_DBG_PREFIX="\"$(TARGET)\""
32endif
33endif
34
35TARGETS     ?= $(TARGET)
36TARGET      ?= DUMMY
37
38OPTI_O      ?= -O2
39CFLAGS      += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(ROAR_CFLAGS)
40LDFLAGS     += -g -Wall $(Wextra) $(OPTI_O) $(LDPATH)
41LIBS        += $(lib_roar)
42
43all: $(TARGETS)
44clean:
45        rm -f $(TARGETS) *.o
46new: clean all
47
48distclean: clean
49        rm -f Makefile.conf config.h config.log
50
51$(TARGET): $(OBJS)
52        $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
53
54#define at least some as phony
55.PHONY: all clean new distclean prep-install-dirs prep-install install semi-install uninstall
56
57#ll
Note: See TracBrowser for help on using the repository browser.