# Copyright (C) Philipp 'ph3-der-loewe' Schafft - 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. OBJS ?= $(BASENAME).o ifneq ($(origin BASENAME), undefined) DEFINES += -DBASENAME="\"$(BASENAME)\"" endif ifneq ($(origin LIBNAME), undefined) DEFINES += -DROAR_DBG_PREFIX="\"$(LIBNAME)\"" else ifneq ($(origin TARGET), undefined) DEFINES += -DROAR_DBG_PREFIX="\"$(TARGET)\"" endif endif TARGETS ?= $(TARGET) TARGET ?= DUMMY OPTI_O ?= -O2 CFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(DEFINES) $(INCLUDE) $(INCPATH) $(ROAR_CFLAGS) LDFLAGS += -g -Wall $(Wextra) $(OPTI_O) $(LDPATH) LIBS += $(lib_roar) all: $(TARGETS) clean: rm -f $(TARGETS) *.o new: clean all distclean: clean rm -f Makefile.conf config.h config.log $(TARGET): $(OBJS) $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) #define at least some as phony .PHONY: all clean new distclean prep-install-dirs prep-install install semi-install uninstall #ll