# Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2008-2012 # # This file is part of roard a part of RoarAudio, # a cross-platform sound system for both, home and professional use. # See README for details. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 # as published by the Free Software Foundation. # # RoarAudio is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this software; see the file COPYING. If not, write to # the Free Software Foundation, 51 Franklin Street, Fifth Floor, # Boston, MA 02110-1301, USA. TARGET ?= $(BASENAME).so OBJS ?= $(BASENAME).o ROAR_CFLAGS := $(shell roar-config --cflags) ROAR_LIBS := $(shell roar-config --libs) OPTI_O ?= -O2 DEFINES += -DBASENAME="\"$(BASENAME)\"" -DROAR_DBG_PREFIX="\"$(TARGET)\"" CFLAGS += -Wall $(Wextra) -g $(OPTI_O) $(fPIC) $(DEFINES) $(INCLUDE) $(INCPATH) $(ROAR_CFLAGS) LDFLAGS += -Wall $(Wextra) -g $(OPTI_O) -shared $(LDPATH) LIBS += $(ROAR_LIBS) all: $(TARGET) clean: rm -f $(TARGET) *.o new: clean all $(TARGET): $(OBJS) $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS)