Update of /cvsroot/pure-data/externals/iem/iemmatrix/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9119
Modified Files: Makefile Log Message: build aliases when not building a library
Index: Makefile =================================================================== RCS file: /cvsroot/pure-data/externals/iem/iemmatrix/src/Makefile,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile 8 Dec 2006 18:40:36 -0000 1.1 --- Makefile 23 Jan 2008 15:24:53 -0000 1.2 *************** *** 8,16 **** -include Make.config
TESTDIR=../tests
HELPERSOURCES=$(LIBRARY_NAME)_sources.c $(LIBRARY_NAME).c
! OBJECTSOURCES=$(sort $(filter-out $(HELPERSOURCES), $(filter %.c, $(wildcard *.c))))
SOURCES=$(OBJECTSOURCES) $(HELPERSOURCES) --- 8,25 ---- -include Make.config
+ VPATH = .:../alias/ + + ## if $(BUILDLIBRARY) is defined, we need to include the aliases + ifeq "$(BUILDLIBRARY)" "" + ALIASOBJECTSOURCES=$(subst ../alias/,,$(sort $(filter %.c, $(wildcard ../alias/*.c)))) + else + ALIASOBJECTSOURCES= + endif + TESTDIR=../tests
HELPERSOURCES=$(LIBRARY_NAME)_sources.c $(LIBRARY_NAME).c
! OBJECTSOURCES=$(sort $(filter-out $(HELPERSOURCES), $(filter %.c, $(wildcard *.c)))) $(ALIASOBJECTSOURCES)
SOURCES=$(OBJECTSOURCES) $(HELPERSOURCES) *************** *** 48,51 **** --- 57,67 ---- OBJECTS = $(OBJECTSOURCES:.c=.$(EXT))
+ + debug: + @echo sources $(SOURCES) + @echo alias $(ALIASOBJECTSOURCES) + @echo targets $(TARGETS) + @echo objects $(OBJECTS) + ## if $(BUILDLIBRARY) is defined, we build everything as a single library ## else we build separate externals *************** *** 66,70 ****
$(TARGETS): %.o : %.c ! $(CC) $(LIBRARY_CFLAGS) -c -o $@ $*.c
externals: $(OBJECTS) --- 82,86 ----
$(TARGETS): %.o : %.c ! $(CC) $(LIBRARY_CFLAGS) -c -o $@ $<
externals: $(OBJECTS)