--- /usr/ports/devel/cocktail/work/cocktail-9309//./cg/test-c/Makefile Tue Feb 15 14:21:27 1994 +++ ./cg/test-c/Makefile Thu Aug 5 18:48:47 2004 @@ -1,7 +1,4 @@ -LIB = $(HOME)/lib -INCDIR = $(LIB)/include -CFLAGS = -I$(INCDIR) -CC = cc +.include "../../Makefile.inc" all: make test clean LIB="$(LIB)" CC="cc" @@ -17,15 +14,12 @@ Main.o: Tree.h Tree.h Tree.c: g.cg - cg -ca g.cg; + $(CG) -ca g.cg; lint: Tree.c Main.c lint $(CFLAGS) -u Main.c Tree.c clean: - rm -f Main Tree.* Main.o yyTree.w a aa aaa b bb core + -rm -f $(STDCLEAN) + -rm -f Main Tree.* Main.o yyTree.w a aa aaa b bb -.SUFFIXES: .c .o - -.c.o: - $(CC) $(CFLAGS) -c $*.c