--- loncom/homework/CAPA-converter/Makefile 2000/04/12 20:06:16 1.1 +++ loncom/homework/CAPA-converter/Makefile 2000/05/03 15:35:11 1.3 @@ -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 +DEF = -DUSE_DYNAMIC_SYMBOLS #-DLEX_DBUG CFLAG = -g -Wall LEX = flex -Cfa -s YACC = bison @@ -55,13 +55,13 @@ ARCH_OBJ = $(ARCH)/capaCommon.o $(ARCH # libcapa:=MACRO=string -answers: $(ARCH)/answers +convert: $(ARCH)/convert echo done -all: $(ARCH)libcapa($VER).a $(ARCH)/answers +all: $(ARCH)libcapa($VER).a $(ARCH)/convert dmalloc: - $(MAKE) DEF="-DDMALLOC -DDMALLOC_FUNC_CHECK $(DEF)" P_FLAGS="-ldmalloc $(P_FLAGS)" libcapa answers + $(MAKE) DEF="-DDMALLOC -DDMALLOC_FUNC_CHECK $(DEF)" P_FLAGS="-ldmalloc $(P_FLAGS)" libcapa convert $(ARCH)libcapa($VER).a: $(ARCH_OBJ) $(AR) r $(ARCH)/libcapa$(VER).a $(ARCH_OBJ) @@ -72,8 +72,8 @@ binclean: $(ARCH)/%.o: %.c capaToken.h $(CC) $(CFLAG) -c $< -o $@ $(DEF) -$(ARCH)/answers: $(ARCH)libcapa($VER).a $(ARCH)/answers.o - $(CC) $(CFLAG) $(DEF) -o $@ $(ARCH)/answers.o -L$(ARCH) -lcapa$(VER) $(P_FLAGS) +$(ARCH)/convert: $(ARCH)libcapa($VER).a $(ARCH)/convert.o + $(CC) $(CFLAG) $(DEF) -o $@ $(ARCH)/convert.o -L$(ARCH) -lcapa$(VER) $(P_FLAGS) capaToken.h: capaParserFun.c