source: roaraudio/build-system/Makefile.common @ 5775:80b9c11b4122

Last change on this file since 5775:80b9c11b4122 was 5775:80b9c11b4122, checked in by phi, 11 years ago

cleanup, general improvements and added support to build binaries with RABS

File size: 1.5 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
23TARGETS     ?= $(TARGET)
24TARGET      ?= DUMMY
25
26OPTI_O      ?= -O2
27DEFINES     += -DBASENAME="\"$(BASENAME)\"" -DROAR_DBG_PREFIX="\"$(TARGET)\""
28CFLAGS      += -Wall $(Wextra) -g $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(ROAR_CFLAGS)
29LDFLAGS     += -Wall $(Wextra) -g $(OPTI_O) $(LDPATH)
30LIBS        += $(lib_roar)
31
32all: $(TARGETS)
33clean:
34        rm -f $(TARGETS) *.o
35new: clean all
36
37distclean: clean
38        rm -f Makefile.conf config.h config.log
39
40$(TARGET): $(OBJS)
41        $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
42
43#define at least some as phony
44.PHONY: all clean new distclean prep-install-dirs prep-install install semi-install uninstall
45
46#ll
Note: See TracBrowser for help on using the repository browser.