aboutsummaryrefslogtreecommitdiff
path: root/build/autoconf/Makefile
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-07-21 13:44:43 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-07-21 13:44:43 +0000
commitc4ce907beac0170a06a32c84ee851e4167ab2909 (patch)
tree69c5b2e81b89a719a41e58735bde2775d6ca9120 /build/autoconf/Makefile
parent54eef8f18df70458bcb3f28f92e46669f70a049e (diff)
more on the way to an autoconf-based "build"
svn path=/trunk/externals/zexy/; revision=10185
Diffstat (limited to 'build/autoconf/Makefile')
-rw-r--r--build/autoconf/Makefile24
1 files changed, 6 insertions, 18 deletions
diff --git a/build/autoconf/Makefile b/build/autoconf/Makefile
index 86a472d..0c09294 100644
--- a/build/autoconf/Makefile
+++ b/build/autoconf/Makefile
@@ -5,32 +5,20 @@ default: all
install install-bin install-doc install-abs \
tests
+TESTDIR=../../tests
+SOURCEDIR=../../src/
-TESTDIR=../tests
+HELPERSOURCES=$(SOURCEDIR)z_zexy.c $(SOURCEDIR)zexy.c $(SOURCEDIR)winNT_portio.c
-HELPERSOURCES=z_zexy.c zexy.c winNT_portio.c
-
-OBJECTSOURCES=$(sort $(filter-out $(HELPERSOURCES), $(filter %.c, $(wildcard *.c))))
+OBJECTSOURCES=$(sort $(filter-out $(HELPERSOURCES), $(filter %.c, $(wildcard $(SOURCEDIR)*.c))))
SOURCES=$(OBJECTSOURCES) $(HELPERSOURCES)
-zexyconf.h: zexyconf.h.in configure
- ./configure $(CONFIGUREFLAGS)
-
-configure: configure.ac aclocal.m4
- autoconf
-aclocal.m4: acinclude.m4
- aclocal
+VPATH = $(SOURCEDIR)
-include $(SOURCES:.c=.d)
-Make.config: Make.config.in configure
- ./configure $(CONFIGUREFLAGS)
-
-z_zexy.c z_zexy.h:
- ./makesource.sh
-
-include Make.config
## 2nd only generate depend-files when we have Make.config included
@@ -65,7 +53,7 @@ $(OBJECTS): %.$(EXT) : %.o
$(STRIP) $(STRIPFLAGS) $@
$(LIBNAME): $(TARGETS) z_zexy.c z_zexy.h
- $(LD) $(LFLAGS) -o $@.$(EXT) *.o $(LIBS)
+ $(LD) $(LFLAGS) -o $@.$(EXT) $(SOURCEDIR)*.o $(LIBS)
$(STRIP) $(STRIPFLAGS) $@.$(EXT)
$(TARGETS): %.o : %.c