-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
67 lines (48 loc) · 1.57 KB
/
makefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# make makefile
#
# Tools used:
# Compile::Resource Compiler
# Compile::GNU C
# Make: make
CFLAGS=-Wall -Zomf -c -O2
DEBUGFLAGS=-g
HEADERS = main.h xtrn.h help.c
OBJS = main.obj user.obj init.obj pnt.obj dlg.obj help.obj file.obj edit.obj thrd.obj
ALL_IPF = template.ipf file.ipf edit.ipf help.ipf dlg.ipf menu.ipf
all : template.exe template.hlp
template.exe: $(OBJS) template.res
gcc -Zomf -Zmap $(OBJS) template.def template.res -o $@
wrc template.res
main.obj: main.c $(HEADER)
gcc $(CFLAGS) $(DEBUGFLAGS) main.c -o main.obj
file.obj: file.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) file.c -o file.obj
edit.obj: edit.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) edit.c -o edit.obj
user.obj: user.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) user.c -o user.obj
init.obj: init.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) init.c -o init.obj
pnt.obj: pnt.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) pnt.c -o pnt.obj
dlg.obj: dlg.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) dlg.c -o dlg.obj
help.obj: help.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) help.c -o help.obj
thrd.obj: thrd.c $(HEADERS)
gcc $(CFLAGS) $(DEBUGFLAGS) thrd.c -o thrd.obj
main.res: main.rc main.ico template.dlg help.rc prodinfo.bmp $(HEADERS)
wrc -r main.rc
template.res: main.res main.ico
$(shell mv main.res template.res)
template.hlp: $(ALL_IPF)
wipfc template.ipf -o template.hlp
.PHONY : clean
clean :
rm -rf *exe *res *obj *lib *.hlp
# MAKEFILE NOTES
#
# $@ is the name of the target being generated.
#
# .PHONY - Read about .PHONY at: https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
#