File: make.tl

package info (click to toggle)
tf5 5.0beta8-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,800 kB
  • ctags: 3,102
  • sloc: ansic: 25,492; perl: 103; makefile: 82; sh: 79
file content (39 lines) | stat: -rw-r--r-- 1,114 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#### Makefile-Tail for gnumake

%.$O : %.c
	$(CC) -c $(CFLAGS) $< -o $@

all: $(EXE) ..\tf-lib\tf-help.idx

usage:
	@echo "#### Use 'make VIDEO=ANSI'    to build ansi-version (default)"
	@echo "####                          (scrolling, using os/2-vio-functions,termcap)"
	@echo "#### Use 'make VIDEO=TERMCAP' to build termcap-version"
	@echo "####                          (no scrolling, using termcap.dat)."
	@echo "#### Use '...DEBUG=ON...'     for debugging informations"
	@echo "#### Use 'make clean'         for removing object-files"

$(EXE): $(OBJS) $(BUILDERS)
	$(CC) $(CFLAGS) -o ..\$(EXE) $(OBJS) $(LIBS)

makehelp.exe: makehelp.c
	$(CC) $(CFLAGS) -o makehelp.exe makehelp.c
	makehelp < ..\tf-lib\tf-help > ..\tf-lib\tf-help.idx

..\tf-lib\tf-help.idx: ..\tf-lib\tf-help makehelp.exe

clean:
	-del *.o* *.exe
	-del regexp.o*

cleanest: clean
	-del Makefile config.h

regexp.$O: regexp\regexp.h regexp\regexp.c regexp\regmagic.h config.h
	cd regexp & \
	$(MAKE) "CFLAGS=$(CFLAGS)" "CC=$(CC)" "O=$(O)" regexp.$O & \
	@copy regexp.$O .. & \
	@del regexp.$O & \
	cd ..

#### end of Makefile-tail for gnumake