1#### Makefile-Tail for gnumake
2
3%.$O : %.c
4	$(CC) -c $(CFLAGS) $< -o $@
5
6all: $(EXE) ..\tf-lib\tf-help.idx
7
8usage:
9	@echo "#### Use 'make VIDEO=ANSI'    to build ansi-version (default)"
10	@echo "####                          (scrolling, using os/2-vio-functions,termcap)"
11	@echo "#### Use 'make VIDEO=TERMCAP' to build termcap-version"
12	@echo "####                          (no scrolling, using termcap.dat)."
13	@echo "#### Use '...DEBUG=ON...'     for debugging informations"
14	@echo "#### Use 'make clean'         for removing object-files"
15
16$(EXE): $(OBJS) $(BUILDERS)
17	$(CC) $(CFLAGS) -o ..\$(EXE) $(OBJS) $(LIBS)
18
19makehelp.exe: makehelp.c
20	$(CC) $(CFLAGS) -o makehelp.exe makehelp.c
21	makehelp < ..\tf-lib\tf-help > ..\tf-lib\tf-help.idx
22
23..\tf-lib\tf-help.idx: ..\tf-lib\tf-help makehelp.exe
24
25clean:
26	-del *.o* *.exe
27	-del regexp.o*
28
29cleanest: clean
30	-del Makefile config.h
31
32regexp.$O: regexp\regexp.h regexp\regexp.c regexp\regmagic.h config.h
33	cd regexp & \
34	$(MAKE) "CFLAGS=$(CFLAGS)" "CC=$(CC)" "O=$(O)" regexp.$O & \
35	@copy regexp.$O .. & \
36	@del regexp.$O & \
37	cd ..
38
39#### end of Makefile-tail for gnumake
40