|
|
1.1 root 1: !IF "$(CPU)" != ""
2: OS=NT
3: ENV=WIN32
4: !ELSE
5: OS=DOS
6: ENV=WIN16
7: !ENDIF
8:
9: # If this generates the error "Unable to open DOSWIN16.MAK" then you need
10: # to put a copy of that file (from the GENERIC sample code directory)
11: # into a directory on your INCLUDE environment variable
12:
13: !include <$(OS)$(ENV).MAK>
14:
15: proj = GENERIC
16:
17: all: $(proj).exe
18:
19: # Update the help file if necessary
20: $(proj).hlp : $(proj).rtf
1.1.1.2 ! root 21: $(hc) -n $(proj).hpj
1.1 root 22:
23: # Update the resource if necessary
24: $(proj).res: $(proj).rc $(proj).rcv $(proj).dlg $(proj).h
1.1.1.2 ! root 25: $(rc) $(rcvars) -r -fo $(proj).res $(cvars) $(proj).rc
1.1 root 26: !IFDEF CPUTYPE
27: cvtres -$(CPU) $(proj).res -o $(proj).rbj
28: !ENDIF
29:
30:
31: # Update the object file if necessary
32: $(proj).obj: $(proj).c $(proj).h
33: $(cc) $(cflags) $(cvars) $(cdebug) $(proj).c
34:
35: # Since the link line has some severe differences depending on what
36: # platform we are running on, we need to special case this so that
37: # we execute the correct commands:
38:
39: $(proj).exe: $(proj).obj $(proj).res $(proj).def $(proj).hlp
40: !IFDEF CPUTYPE
41: # This is for Windows NT:
42: $(link) $(linkdebug) $(guiflags) $(proj).obj $(guilibs) VERSION.LIB $(proj).rbj -out:$(proj).exe
43: !ENDIF
44: !IFNDEF CPUTYPE
45: # This is for Windows DOS:
46: $(link) $(guiflags) $(proj).obj $(guilibs) $(proj).DEF
47: rc $(proj).res
48: !ENDIF
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.