[5681] | 1 | # Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-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 | |
---|
| 21 | TARGET ?= $(BASENAME).so |
---|
| 22 | OBJS ?= $(BASENAME).o |
---|
| 23 | |
---|
| 24 | ROAR_CFLAGS := $(shell roar-config --cflags) |
---|
| 25 | ROAR_LIBS := $(shell roar-config --libs) |
---|
| 26 | OPTI_O ?= -O2 |
---|
| 27 | DEFINES += -DBASENAME="\"$(BASENAME)\"" -DROAR_DBG_PREFIX="\"$(TARGET)\"" |
---|
| 28 | CFLAGS += -Wall $(Wextra) -g $(OPTI_O) $(fPIC) $(DEFINES) $(INCLUDE) $(INCPATH) $(ROAR_CFLAGS) |
---|
| 29 | LDFLAGS += -Wall $(Wextra) -g $(OPTI_O) -shared $(LDPATH) |
---|
| 30 | LIBS += $(ROAR_LIBS) |
---|
| 31 | |
---|
| 32 | all: $(TARGET) |
---|
| 33 | clean: |
---|
| 34 | rm -f $(TARGET) *.o |
---|
| 35 | new: clean all |
---|
| 36 | |
---|
| 37 | $(TARGET): $(OBJS) |
---|
| 38 | $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) |
---|