c/Makefile.in: fixed multiple-job build of ecl.
authorDaniel Kochmański <dkochmanski@antmicro.com>
Sun, 7 Sep 2014 16:45:16 +0000 (18:45 +0200)
committerArto Bendiken <arto@bendiken.net>
Mon, 22 Sep 2014 12:40:37 +0000 (12:40 +0000)
make -jX was failing due to unresolved dependencies to dpp.

See: https://sourceforge.net/p/ecls/patches/37/
Signed-off-by: Arto Bendiken <arto@bendiken.net>
src/c/Makefile.in

index 7e7afc4..89de85d 100644 (file)
@@ -118,6 +118,7 @@ $(DPP): $(srcdir)/dpp.c $(srcdir)/symbols_list2.h
        $(TRUE_CC) -I$(srcdir) -I@true_builddir@ -I./ $(srcdir)/dpp.c @CPPFLAGS@ @CFLAGS@ @ECL_CFLAGS@ -o $@ ; \
        fi
 
+$(OBJS): $(DPP)
 #
 # symbols_list2.h is built this way to allow for an atomic replacement of
 # the file. Otherwise we have problem when doing concurrent builds with
@@ -139,11 +140,13 @@ gbc.o: gbc.c $(HFILES)
 #
 # This reduces the overhead of jumping to other functions
 #
+apply.c: $(DPP)
 apply.o: apply.c $(HFILES) $(HDIR)/cs.h
        $(CC) $(CFLAGS) apply.c -o $@
 #
 # These files are interrelated
 #
+all_symbols.c: $(DPP)
 all_symbols.o: all_symbols.c
        $(CC) $(CFLAGS) -I./ all_symbols.c -o $@
 all_symbols2.o: all_symbols.c
@@ -152,5 +155,6 @@ all_symbols2.o: all_symbols.c
 #
 # This is in another directory
 #
+cinit.c: $(DPP)
 ../cinit.o: cinit.c $(HFILES)
        $(CC) $(CFLAGS) -I./ cinit.c -o $@