aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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