From 13e190ce43988c86499266b5f00b924f754549d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 6 Jun 2006 12:05:33 +0000 Subject: 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 --- src/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.1