|
|
1.1 root 1: #===================================================================
2: #
3: # Sample Make file
4: # Created 1989 Micorosft Corporation
5: #
6: #===================================================================
7:
8: .SUFFIXES: .res .rc
9:
10: ASM = masm
11: AFLAGS =
12: AXFLAGS =
13: CC = cl
14: CFLAGS = -u -c -G2s -Od -W3 -Zpei -AL
15: CFLAGS32 = -c -G3s -Od -W3 -Zi -B1 c1l_386 -DOS2_API32
16: DFLAGS =
17: LINK = link
18: LIBS = os2 llibcep # printdlg
19: LFLAGS = /MAP/CO/NOD
20: RC = rc
21: HEADERS = sample.h
22:
23: #===================================================================
24: #
25: # Default inference rules
26: #
27: #===================================================================
28: .c.obj:
29: $(CC) $(CFLAGS) $*.c
30:
31: .asm.obj:
32: $(ASM) $(AFLAGS) $(AXFLAGS) $*.asm;
33:
34: .rc.res:
35: $(RC) -r $*.rc
36:
37: #===================================================================
38: #
39: # A list of all of the object files
40: #
41: #===================================================================
42: ALL_OBJ1 = sample.obj usercmd.obj init.obj paint.obj dialog.obj help.obj
43: ALL_OBJ2 = filecmd.obj # print.obj
44:
45: #===================================================================
46: #
47: # A list of all of the Help files
48: #
49: #===================================================================
50: ALL_IPF = sample.ipf file.ipf edit.ipf help.ipf dialog.ipf
51:
52: #===================================================================
53: #
54: # Dependencies
55: #
56: #===================================================================
57:
58: all: sample.exe
59:
60: sample.lnk: makefile.12
61: echo $(ALL_OBJ1) + > sample.lnk
62: echo $(ALL_OBJ2) >>sample.lnk
63: echo sample.exe >> sample.lnk
64: echo sample.map $(LFLAGS) >> sample.lnk
65: echo $(LIBS) >> sample.lnk
66: echo sample.def >> sample.lnk
67:
68: sample.res: sample.rc sample.h sampdlg.h sampdlg.dlg samphelp.rc samphelp.h
69:
70: sample.obj: sample.c $(HEADERS)
71:
72: filecmd.obj: filecmd.c $(HEADERS)
73:
74: editcmd.obj: editcmd.c $(HEADERS)
75:
76: usercmd.obj: usercmd.c $(HEADERS)
77:
78: init.obj: init.c $(HEADERS)
79:
80: paint.obj: paint.c $(HEADERS)
81:
82: dialog.obj: dialog.c $(HEADERS)
83:
84: help.obj: help.c $(HEADERS) samphelp.h
85:
86: # print.obj: print.c $(HEADERS)
87:
88:
89: #=============== help file generation ====================#
90: sample.hlp: $(ALL_IPF)
91: ipfc sample.ipf /W3
92:
93: sample.exe: $(ALL_OBJ1) $(ALL_OBJ2) sample.def sample.lnk sample.res sample.hlp
94: $(LINK) @sample.lnk
95: mapsym sample.map
96: rc sample.res
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.