TOP=.

all: lib test

lib: FORCE
	make -C lib

include make.rules
LIB = lib/libtest.a

$(LIB) $(INIT) $(FINI):
	make -C lib

test: test.o $(LIB) $(INIT) $(FINI) $(LDFILES)
	$(LDEXE) -o $@ $(INIT) $< $(FINI) $(LIB)

clean::
	rm -f test

FORCE:
