diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-03-06 11:44:59 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-03-06 11:44:59 +0000 |
commit | b017323a5955bcaaa19dfea4fc651a253bfdd552 (patch) | |
tree | 2abf75fc740b220ea9432e0e1e3eb560f8ccfcaf /src | |
parent | ddc3e649a585946735f79b13e459c2272d1bd633 (diff) |
better dependencies; regenerate z_zexy.{c,h} if necessary
svn path=/trunk/externals/zexy/; revision=4651
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile index ffc3a15..e0b3c25 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,10 +4,7 @@ default: all clean realclean distclean \ install install-bin install-doc install-abs -SOURCES=$(sort $(filter %.c, $(wildcard *.c))) - -Make.config: Make.config.in configure - ./configure +SOURCES=$(sort $(filter %.c, $(wildcard *.c)) z_zexy.c) zexyconf.h: zexyconf.h.in configure ./configure @@ -20,9 +17,17 @@ configure: configure.ac ifeq (,$(findstring clean, $(MAKECMDGOALS))) -include $(SOURCES:.c=.d) --include Make.config + +Make.config: Make.config.in configure + ./configure + +z_zexy.c z_zexy.h: + ./makesource.sh endif +-include Make.config + + ## 2nd only generate depend-files when we have Make.config included ## and thus MAKEDEP_FLAGS defined ifdef MAKEDEP_FLAGS @@ -43,7 +48,7 @@ TARGETS = $(SOURCES:.c=.o) all: $(LIBNAME) cp $(LIBNAME).$(EXT) .. -$(LIBNAME): $(TARGETS) +$(LIBNAME): $(TARGETS) z_zexy.c z_zexy.h $(LD) $(LFLAGS) -o $(LIBNAME).$(EXT) *.o $(LIBS) $(STRIP) $(STRIPFLAGS) $(LIBNAME).$(EXT) |