diff Makefile @ 2:7317fbe024af

Clean up insane number of compiler warnings under -Wall
author lost@l-w.ca
date Thu, 20 Jan 2011 22:39:46 -0700
parents 96c4dc89016e
children d4eb3c328a47
line wrap: on
line diff
--- a/Makefile	Wed Jan 19 22:31:00 2011 -0700
+++ b/Makefile	Thu Jan 20 22:39:46 2011 -0700
@@ -1,8 +1,8 @@
-CPPFLAGS += -I lwlib -DPACKAGE_STRING='"lwtools 4.0-pre"' -DPACKAGE_BUGREPORT='"lost@l-w.ca"'
+CPPFLAGS += -I lwlib -D_GNU_SOURCE -DPACKAGE_STRING='"lwtools 4.0-pre"' -DPACKAGE_BUGREPORT='"lost@l-w.ca"'
 
 LDFLAGS += -L$(PWD)/lwlib -llw
 
-MAIN_TARGETS := lwasm/lwasm lwlink/lwlink lwar/lwar
+MAIN_TARGETS := lwasm/lwasm lwlink/lwlink lwar/lwar lwlink/lwobjdump
 
 .PHONY: all
 all: $(MAIN_TARGETS)
@@ -15,6 +15,7 @@
 lwlink_objs := $(lwlink_srcs:.c=.o)
 lwar_objs := $(lwar_srcs:.c=.o)
 lwlib_objs := $(lwlib_srcs:.c=.o)
+lwobjdump_objs := $(lwobjdump_srcs:.c=.o)
 
 lwasm_deps := $(lwasm_srcs:.c=.d)
 lwlink_deps := $(lwlink_srcs:.c=.d)
@@ -65,4 +66,7 @@
 	rm -f lwlib/liblw.a lwasm/lwasm lwlink/lwlink lwlink/lwobjdump lwar/lwar
 	rm -f $(lwasm_objs) $(lwlink_objs) $(lwar_objs) $(lwlib_objs) $(lwobjdump_objs)
 	rm -f $(extra_clean)
+
+print-%:
+	@echo $* = $($*)
 	
\ No newline at end of file