X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=Makefile;h=963fa2f7529f8521a5f209e9839d3ec9cffb058c;hb=46c697078dd4b2f636fd97791afdc6f8a72d5ee4;hp=4675ad3da1148838000d57a391af8c33cdd82684;hpb=923fd7d858fd232ce9aff67943b688385a836f07;p=cparser diff --git a/Makefile b/Makefile index 4675ad3..963fa2f 100644 --- 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)