aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-06 12:05:33 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-06-06 12:05:33 +0000
commit13e190ce43988c86499266b5f00b924f754549d7 (patch)
tree6f2af60d1c517f1cc1bdf26a45a82eaffe7c63fe /src/Makefile
parent81dd6aadefa06530e4faf804c8ca4352c86232c9 (diff)
seperated SOURCES into HELPERSOURCES (non-objects) and OJBECTSOURCES (real objects), in order to not build (e.g.) "z_zexy.pd_linux" when splitting the library into externals
svn path=/trunk/externals/zexy/; revision=5175
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 60dd75f..9658158 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,7 +4,11 @@ default: all
clean realclean distclean \
install install-bin install-doc install-abs
-SOURCES=$(sort $(filter %.c, $(wildcard *.c)) z_zexy.c)
+HELPERSOURCES=z_zexy.c zexy.c winNT_portio.c
+
+OBJECTSOURCES=$(sort $(filter-out $(HELPERSOURCES), $(filter %.c, $(wildcard *.c))))
+
+SOURCES=$(OBJECTSOURCES) $(HELPERSOURCES)
zexyconf.h: zexyconf.h.in configure
./configure
@@ -44,7 +48,7 @@ endif
TARGETS = $(SOURCES:.c=.o)
-OBJECTS = $(SOURCES:.c=)
+OBJECTS = $(OBJECTSOURCES:.c=)
## if $(BUILDLIBRARY) is defined, we build everything as a single library
## else we build separate externals
@@ -52,7 +56,7 @@ ifneq "$(BUILDLIBRARY)" ""
all: $(LIBNAME)
cp $(LIBNAME).$(EXT) ..
else
-all: externals
+all: $(OBJECTS)
endif