-
Notifications
You must be signed in to change notification settings - Fork 0
/
CLRPALET.MAK
93 lines (73 loc) · 2.27 KB
/
CLRPALET.MAK
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#****************************************************************************
# WorkPlace Shell Color Palette sample object class makefile
#****************************************************************************
# Dot directive definition area (usually just suffixes)
#
.SUFFIXES:
.SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res
# Environment Setup for the component(s).
#
TOOLKIT = e:\toolkt21
SOMTEMP = .\somtemp
SCPATH = $(TOOLKIT)\sc
!if [set SMINCLUDE=.;$(SCPATH);] || \
[set SMTMP=$(SOMTEMP)] || \
[set SMEMIT=ih;h;ph;psc;sc;c]
!endif
!if [cd $(SOMTEMP)]
! if [md $(SOMTEMP)]
! error error creating $(SOMTEMP) directory
! endif
!else
! if [cd ..]
! error - Couldn't cd .. from $(SOMTEMP) directory
! endif
!endif
# Set up the lists of libraries used and object modules to be built
#
CLRPALETOBJS = clrpalet.obj clrstar.obj clrwheel.obj
CLRPALETLNKLIBS = os2386.lib dde4mbs.lib som.lib
CLRPALETLNKOPTS = /noi /map /nol /nod /exepack /packcode /packdata /align:16 /noe
TESTAPPOBJS = clrsampl.obj testapp.obj
TESTAPPLNKLIBS = os2386.lib dde4sbs.lib
TESTAPPLNKOPTS = /NOP /NOI /NOP /M /NOL /NOD /PM:PM
# General rules for how to build things
#
.c.obj:
$(CC) /Ge- /Ti+ /Ss+ -c $<
.csc.ih:
sc -r $*.csc
# List of all the targets to be built
#
all: clrpalet.lib clrpalet.dll testapp.exe
# Build rules for CLRPALET.LIB
#
clrpalet.lib: clrpalet.def
implib clrpalet.lib clrpalet.def
# Build rules for CLRPALET.DLL
#
clrpalet.dll: $$(@B).def $(CLRPALETOBJS) clrpalet.res
link386 $(CLRPALETLNKOPTS) $(CLRPALETOBJS),$@,,$(CLRPALETLNKLIBS),$*;
rc $*.res $*.dll
mapsym clrpalet.map
clrpalet.obj: $$(@B).c $$(@B).ih $$(@B).h $$(@B).sc
clrpalet.ih: clrpalet.csc
sc -r $*.csc
clrstar.obj: $$(@B).c $$(@B).ih $$(@B).h $$(@B).sc
clrstar.ih: clrstar.csc
sc -r $*.csc
clrpalet.res: $$(@B).rc $$(@B).ih
rc -r $*.rc $*.res
# Build rules for TESTAPP.EXE
#
testapp.exe: $$(@B).def $(TESTAPPOBJS) testapp.res
link386 $(TESTAPPLNKOPTS) $(TESTAPPOBJS),$@,,$(TESTAPPLNKLIBS),$*;
rc $*.res $*.exe
mapsym testapp.map
testapp.obj: testapp.c
icc /Ss /Q /c /Ti /Gmdn $*.c
clrsampl.obj: clrsampl.c
icc /Ss /Q /c /Ti /Gmdn $*.c
testapp.res: $$(@B).rc
rc -r $*.rc $*.res