add a panic for unimplemented initializer creation
[cparser] / Makefile
index 4675ad3..963fa2f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ CFLAGS += -O0 -g3
 #CFLAGS += -O3 -march=pentium4 -fomit-frame-pointer -DNDEBUG
 #CFLAGS += -pg -O3 -fno-inline
 ICC_CFLAGS = -O0 -g3 -std=c99 -Wall -Werror
-LFLAGS += -pg
+#LFLAGS += -pg
 ICC    ?= true
 GCCO1  ?= true
 
@@ -57,9 +57,9 @@ CPARSEROS2 = $(SOURCES:%.c=build/cpb2/%.o)
 
 Q = @
 
-.PHONY : all clean dirs
+all: $(DIRS) $(GOAL)
 
-all: $(GOAL)
+.PHONY: all clean dirs bootstrap bootstrap2
 
 ifeq ($(findstring $(MAKECMDGOALS), clean depend),)
 -include .depend
@@ -79,13 +79,13 @@ endif
        @echo "===> DEPEND"
        @rm -f $@ && touch $@ && makedepend -p "$@ build/" -Y -f $@ -- $(CPPFLAGS) -- $(SOURCES) 2> /dev/null && rm $@.bak
 
-DIRS = build/adt build/driver build/cpb build/cpb/adt build/cpb/driver build/cpb2 build/cpb2/adt build/cpb2/driver
+DIRS = build build/adt build/driver build/cpb build/cpb/adt build/cpb/driver build/cpb2 build/cpb2/adt build/cpb2/driver
+UNUSED := $(shell mkdir -p $(DIRS))
 
-$(GOAL): $(DIRS) $(OBJECTS)
+$(GOAL): $(OBJECTS)
        @echo "===> LD $@"
        $(Q)$(CC) $(OBJECTS) $(LFLAGS) -o $(GOAL)
 
-
 splint: $(SPLINTS)
 
 selfcheck: $(CPARSERS)