--- loncom/homework/CAPA-converter/Makefile 2000/05/03 15:35:11 1.3 +++ loncom/homework/CAPA-converter/Makefile 2001/04/30 21:33:53 1.5 @@ -6,7 +6,7 @@ VER = 5.1 BUGFIX = 0 #CC = i486-linuxlibc1-gcc -DCAPA_VER=\"$(VER).$(BUGFIX)\" -DCOMPILE_DATE=\"`date +'%b-%d-%Y'`\" CC = cc -DCAPA_VER=\"$(VER).$(BUGFIX)\" -DCOMPILE_DATE=\"`date +'%b-%d-%Y-%H:%M'`\" -DEF = -DUSE_DYNAMIC_SYMBOLS #-DLEX_DBUG +DEF = -DUSE_DYNAMIC_SYMBOLS -D_GNU_SOURCE#-DLEX_DBUG CFLAG = -g -Wall LEX = flex -Cfa -s YACC = bison @@ -55,10 +55,13 @@ ARCH_OBJ = $(ARCH)/capaCommon.o $(ARCH # libcapa:=MACRO=string -convert: $(ARCH)/convert +convert: $(ARCH) $(ARCH)/convert echo done -all: $(ARCH)libcapa($VER).a $(ARCH)/convert +all: $(ARCH) $(ARCH)libcapa($VER).a $(ARCH)/convert + +$(ARCH): + mkdir $(ARCH) dmalloc: $(MAKE) DEF="-DDMALLOC -DDMALLOC_FUNC_CHECK $(DEF)" P_FLAGS="-ldmalloc $(P_FLAGS)" libcapa convert @@ -85,9 +88,9 @@ capaLexerFun.c: capaLexerDef.flex capaTo $(LEX) -o$@ $< clean: - rm $(ARCH)/*.o - rm $(ARCH)/libcapa$(VER).a - rm capaToken.h - rm capaParserFun.c - rm capaLexerFun.c + rm -f $(ARCH)/*.o + rm -f $(ARCH)/libcapa$(VER).a + rm -f capaToken.h + rm -f capaParserFun.c + rm -f capaLexerFun.c