about summary refs log tree commit diff
path: root/lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 505aef6d..b922e30b 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -81,10 +81,13 @@ extra_staticlib: $(EXTRA_STATICLIB)
 # type, but request a static library in addition.
 #----------------------------------------------------------------------------
 
-$(LIBOBJECTS): %.o: %.c importinc
 # Note that the user may have configured -I options into CPPFLAGS/CFLAGS.
-	$(CC) -c $(INCLUDES) -DNDEBUG $(CPPFLAGS) $(CFLAGS) $(CFLAGS_SHLIB) \
-	  $(CFLAGS_PERSONAL) $(CADD) -o $@ $<
+CFLAGS_ALL = $(INCLUDES) -DNDEBUG $(CPPFLAGS) $(CFLAGS) $(CFLAGS_SHLIB) \
+ $(CFLAGS_PERSONAL) $(CADD)
+
+$(LIBOBJECTS): %.o: %.c importinc
+# We have to get the command all on one line to avoid messy make messages
+	$(CC) -c $(CFLAGS_ALL) -o $@ $<
 
 MAJ = $(NETPBM_MAJOR_RELEASE)
 MIN = $(NETPBM_MINOR_RELEASE)