From fa07b756da845efefcb4af6c0a768b89a98cf870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 1 Mar 2006 12:23:45 +0000 Subject: updated to autogenerate iem_bin_ambi_sources.* when needed svn path=/trunk/externals/iem/iem_bin_ambi/; revision=4638 --- src/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 7cb2ee7..8e18398 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,8 +6,13 @@ default: all SOURCES=$(sort $(filter %.c, $(wildcard *.c))) +ifeq (,$(findstring clean, $(MAKECMDGOALS))) Make.config: Make.config.in configure ./configure +endif + +iem_bin_ambi_sources.c iem_bin_ambi_sources.h: + ./makesource.sh configure: configure.ac autoconf @@ -17,9 +22,10 @@ configure: configure.ac ifeq (,$(findstring clean, $(MAKECMDGOALS))) -include $(SOURCES:.c=.d) --include Make.config endif +-include Make.config + ## 2nd only generate depend-files when we have Make.config included ## and thus MAKEDEP_FLAGS defined ifdef MAKEDEP_FLAGS @@ -40,7 +46,7 @@ TARGETS = $(SOURCES:.c=.o) all: $(LIBNAME) cp $(LIBNAME).$(EXT) .. -$(LIBNAME): $(TARGETS) +$(LIBNAME): $(TARGETS) iem_bin_ambi_sources.c iem_bin_ambi_sources.h $(LD) $(LFLAGS) -o $(LIBNAME).$(EXT) *.o $(LIBS) $(STRIP) $(STRIPFLAGS) $(LIBNAME).$(EXT) -- cgit v1.2.1