with complete bracketing and indenting.
# File: indent_test.mk
- myCFLAGS := -Wall -g -fplan9-extensions
- CFLAGS := $(filter-out $(myCFLAGS),$(CFLAGS)) $(myCFLAGS)
- myLDLIBS:= libparser.o libscanner.o libmdcode.o -licuuc
- LDLIBS := $(filter-out $(myLDLIBS),$(LDLIBS)) $(myLDLIBS)
+ itestCFLAGS := -Wall -g -fplan9-extensions
+ itestLDLIBS:= libparser.o libscanner.o libmdcode.o -licuuc
all :: itest
- itest.c itest.h : indent_test.mdc parsergen libparser.o libscanner.o libmdcode.o
+ itest.c itest.h : indent_test.mdc parsergen
./parsergen -o itest --LALR --tag indent indent_test.mdc
indent_test.mk: indent_test.mdc md2c
./md2c indent_test.mdc
- itest: itest.c
+ itest: itest.c | $(filter %.o,$(itestLDLIBS))
+ $(CC) $(itestCFLAGS) $^ $(itestLDLIBS) -o $@
doitest: itest itest.code
./itest itest.code