From ef59d2ea1a5b37d503abcc0c5cb023b78022a091 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Mon, 31 Aug 2009 14:06:45 +0200 Subject: [PATCH] Solaris's make is not able to deduce from .d.c and .c.o the .d.o rule. --- src/c/Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/c/Makefile.in b/src/c/Makefile.in index 9160b54e9..c5437c45c 100644 --- a/src/c/Makefile.in +++ b/src/c/Makefile.in @@ -58,6 +58,10 @@ all: $(DPP) ../libeclmin.a ../cinit.o .d.c: $(DPP) if test -f ../CROSS-DPP ; then ../CROSS-DPP $< $@ ; else $(DPP) $< $@ ; fi +.d.o: $(DPP) + if test -f ../CROSS-DPP ; then ../CROSS-DPP $< tmp.c ; else $(DPP) $< tmp.c ; fi + $(CC) -DECLDIR="\"@ecldir@\"" $(CFLAGS) -o $@ $< + $(RM) tmp.c .c.s: $(HFILES) $(CC) -DECLDIR="\"@ecldir@\"" $(CFLAGS) -S -o $@ $< .c.o: $(HFILES) @@ -84,7 +88,7 @@ ffi_x86_64.c: $(srcdir)/arch/ffi_x86_64.d $(DPP) $(HFILES) $(RANLIB) $@ clean: - $(RM) $(DPP) *.c *.h $(OBJS) all_symbols.o all_symbols2.o ../libecl.a cinit.o core a.out + $(RM) $(DPP) *.c *.h $(OBJS) all_symbols.o all_symbols2.o ../libecl.a cinit.o core a.out tmp.c # Build rules