1 | .autodepend |
---|
2 | |
---|
3 | TEST=1 |
---|
4 | VERSION=Beta 5 |
---|
5 | |
---|
6 | !if $(TEST)==1 |
---|
7 | BMODE=os2v2 |
---|
8 | !else |
---|
9 | BMODE=os2v2_pm |
---|
10 | !endif |
---|
11 | |
---|
12 | OBJDIR = ..\..\OBJS |
---|
13 | EXEDIR = ..\..\BIN |
---|
14 | |
---|
15 | .path.obj = $(OBJDIR) |
---|
16 | .path.res = $(OBJDIR) |
---|
17 | .path.exe = $(EXEDIR) |
---|
18 | .path.dll = $(EXEDIR) |
---|
19 | |
---|
20 | |
---|
21 | .CPP.OBJ: |
---|
22 | WPP386 @make.cfg -xs -fo$@ $< |
---|
23 | |
---|
24 | .C.OBJ: |
---|
25 | WCC386 @make.cfg -fo$@ $< |
---|
26 | |
---|
27 | .idl.xh: |
---|
28 | sc -c -s"xc;xih;xh" ..\plugins\ludoc $< |
---|
29 | |
---|
30 | |
---|
31 | all: make.cfg lucide.dll Lucide.exe |
---|
32 | DEL MAKE.CFG |
---|
33 | |
---|
34 | OBJS = Lucide.obj luutils.obj clipbrd.obj pmsplitter.obj pmtoolbar.obj \ |
---|
35 | toolbar.obj pluginman.obj pluginViewDlg.obj docViewer.obj \ |
---|
36 | linklab.obj wwbtn.obj intern.obj messages.obj indexWindow.obj \ |
---|
37 | fontsInfoDlg.obj docInfoDlg.obj findDlg.obj progressDlg.obj \ |
---|
38 | aboutDlg.obj settingsDlg.obj lusettings.obj printDlg.obj \ |
---|
39 | print.obj stbrowser.obj pipemon.obj lucidethumbs.obj |
---|
40 | |
---|
41 | lucide.dll: $(OBJS) lucide.res |
---|
42 | copy &&| |
---|
43 | option quiet |
---|
44 | system os2v2 dll initinstance terminstance |
---|
45 | option map=$(OBJDIR)\lucide_dll |
---|
46 | option statics |
---|
47 | file $(OBJDIR)\lucide.obj |
---|
48 | file $(OBJDIR)\luutils.obj |
---|
49 | file $(OBJDIR)\clipbrd.obj |
---|
50 | file $(OBJDIR)\pmsplitter.obj |
---|
51 | file $(OBJDIR)\pmtoolbar.obj |
---|
52 | file $(OBJDIR)\toolbar.obj |
---|
53 | file $(OBJDIR)\pluginman.obj |
---|
54 | file $(OBJDIR)\pluginViewDlg.obj |
---|
55 | file $(OBJDIR)\fontsInfoDlg.obj |
---|
56 | file $(OBJDIR)\docInfoDlg.obj |
---|
57 | file $(OBJDIR)\findDlg.obj |
---|
58 | file $(OBJDIR)\progressDlg.obj |
---|
59 | file $(OBJDIR)\aboutDlg.obj |
---|
60 | file $(OBJDIR)\printDlg.obj |
---|
61 | file $(OBJDIR)\print.obj |
---|
62 | file $(OBJDIR)\settingsDlg.obj |
---|
63 | file $(OBJDIR)\lusettings.obj |
---|
64 | file $(OBJDIR)\docViewer.obj |
---|
65 | file $(OBJDIR)\indexWindow.obj |
---|
66 | file $(OBJDIR)\linklab.obj |
---|
67 | file $(OBJDIR)\wwbtn.obj |
---|
68 | file $(OBJDIR)\intern.obj |
---|
69 | file $(OBJDIR)\messages.obj |
---|
70 | file $(OBJDIR)\stbrowser.obj |
---|
71 | file $(OBJDIR)\pipemon.obj |
---|
72 | file $(OBJDIR)\lucidethumbs.obj |
---|
73 | name $(EXEDIR)\lucide |
---|
74 | lib ..\plugins\ludoc\ludoc |
---|
75 | lib somtk |
---|
76 | export LucideMain |
---|
77 | | tmpmake.lnk >NUL |
---|
78 | wlink @tmpmake.lnk |
---|
79 | RC -n $(OBJDIR)\lucide.res $(EXEDIR)\lucide.dll >NUL |
---|
80 | del tmpmake.lnk |
---|
81 | |
---|
82 | |
---|
83 | Lucide.exe: lcd.obj lcd.res |
---|
84 | copy &&| |
---|
85 | option quiet |
---|
86 | system $(BMODE) |
---|
87 | option map=$(OBJDIR)\lucide |
---|
88 | option statics |
---|
89 | file $(OBJDIR)\lcd.obj |
---|
90 | name $(EXEDIR)\Lucide |
---|
91 | | tmpmake.lnk >NUL |
---|
92 | wlink @tmpmake.lnk |
---|
93 | RC -n $(OBJDIR)\lcd.res $(EXEDIR)\Lucide.exe >NUL |
---|
94 | del tmpmake.lnk |
---|
95 | |
---|
96 | |
---|
97 | Lucide.res: Lucide.rc dialogs.rc Lucide_res.H |
---|
98 | RC -n -r Lucide.rc $(OBJDIR)\Lucide.res |
---|
99 | |
---|
100 | lcd.res: lcd.rc |
---|
101 | RC -n -r lcd.rc $(OBJDIR)\lcd.res |
---|
102 | |
---|
103 | |
---|
104 | Lucide.cpp: ..\plugins\ludoc\ludoc.xh |
---|
105 | |
---|
106 | Lucide.obj: Lucide.cpp |
---|
107 | luutils.obj: luutils.cpp |
---|
108 | clipbrd.obj: clipbrd.cpp |
---|
109 | pmsplitter.obj: pmsplitter.cpp |
---|
110 | pmtoolbar.obj: pmtoolbar.cpp |
---|
111 | toolbar.obj: toolbar.cpp |
---|
112 | pluginman.obj: pluginman.cpp |
---|
113 | pluginViewDlg.obj: pluginViewDlg.cpp |
---|
114 | fontsInfoDlg.obj: fontsInfoDlg.cpp |
---|
115 | docInfoDlg.obj: docInfoDlg.cpp |
---|
116 | findDlg.obj: findDlg.cpp |
---|
117 | progressDlg.obj: progressDlg.cpp |
---|
118 | aboutDlg.obj: aboutDlg.cpp |
---|
119 | printDlg.obj: printDlg.cpp |
---|
120 | print.obj: print.cpp |
---|
121 | settingsDlg.obj: settingsDlg.cpp |
---|
122 | lusettings.obj: lusettings.cpp |
---|
123 | docViewer.obj: docViewer.cpp |
---|
124 | indexWindow.obj: indexWindow.cpp |
---|
125 | intern.obj: intern.cpp |
---|
126 | messages.obj: messages.cpp |
---|
127 | pipemon.obj: pipemon.cpp |
---|
128 | lucidethumbs.obj: lucidethumbs.cpp |
---|
129 | linklab.obj: linklab.c |
---|
130 | wwbtn.obj: wwbtn.c |
---|
131 | stbrowser.obj: stbrowser.c |
---|
132 | lcd.obj: lcd.c makefile |
---|
133 | |
---|
134 | |
---|
135 | MAKE.CFG: makefile |
---|
136 | copy &&| |
---|
137 | -zq |
---|
138 | -zp=4 |
---|
139 | -ot |
---|
140 | -ox |
---|
141 | -bm |
---|
142 | -sg |
---|
143 | -DVERSION="$(VERSION)" |
---|
144 | !if $(TEST)==1 |
---|
145 | -D__TEST__ |
---|
146 | !endif |
---|
147 | -I..\sominc |
---|
148 | -I..\plugins\ludoc |
---|
149 | -DOS2 |
---|
150 | | MAKE.CFG >NUL |
---|