#
# "make" file, this is actually a test procedure for the C preprocessor
#

PP = ../npp

works: line.t ifops.t define.t include.t ifdef.t comment.t args.t
	@echo "tests completed successfully"; rm out.i

define.t: define.c define.i $(PP)
	$(PP) define.c out.i
	cmp out.i define.i
	touch define.t
include.t: include.c include.i $(PP)
	$(PP) include.c out.i
	cmp out.i include.i
	touch include.t
ifdef.t: ifdef.c ifdef.i $(PP)
	$(PP) ifdef.c out.i
	cmp out.i ifdef.i
	touch ifdef.t
ifops.t: ifops.c ifops.i $(PP)
	$(PP) ifops.c out.i
	cmp out.i ifops.i
	touch ifops.t
line.t: line.c line.i $(PP)
	$(PP) line.c out.i
	cmp out.i line.i
	touch line.t
if.t:   if.c if.i $(PP)
	$(PP) if.c out.i
	cmp out.i if.i
	touch if.t
comment.t: comment.c comment.i $(PP)
	$(PP) comment.c out.i
	cmp out.i comment.i
	touch comment.t
args.t: args.c args.i $(PP)
	$(PP) args.c out.i -I/usr/include/sys -Uunix -Dgarbage=3 -DBLAH
	cmp out.i args.i
	touch args.t
