source: golgotha/src/i4/makefile.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 6.7 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#include "nrm_make.cc"
10
11#define I4 "."
12#define GLIDE_INC "/usr/local/glide/include"
13
14enum
15{
16  GOLG,
17  LIBS
18};
19
20
21list lib_name;
22list files[LAST+1][LIBS];
23list includes;
24list defines;
25
26list blank;
27
28
29common()
30{
31  lib_name
32    + "libgolgi4"
33    ;
34
35  files[LINUX] [GOLG]
36    + I4 "/video/glide/glide_display.cc"
37    + I4 "/video/x11/x11_input.cc"
38
39    + I4 "/file/linux/linux_file.cc"
40    + I4 "/file/linux/get_dir.cc"
41
42    + I4 "/main/nrm_main.cc"
43   
44   
45    + I4 "/time/unixtime.cc"
46    + I4 "/time/timedev.cc"
47   
48    + I4 "/music/stream.cc"
49    + I4 "/file/linux/unix_open.cc"
50   
51    + I4 "/dll/linux_dll.cc"
52    ;
53
54/* hiya */
55
56  files[SGI]   [GOLG]
57    + I4 "/video/x11/x11_display.cc"
58   
59    + I4 "/video/x11/x11_input.cc"
60    + I4 "/video/x11/mitshm.cc"
61   
62    + I4 "/file/async.cc"
63    + I4 "/file/linux/linux_file.cc"
64    + I4 "/threads/linux/threads.cc"
65    + I4 "/file/linux/get_dir.cc"
66   
67    + I4 "/main/nrm_main.cc"
68    + I4 "/time/unixtime.cc"
69    + I4 "/time/timedev.cc"
70    + I4 "/music/stream.cc"
71    + I4 "/file/linux/unix_open.cc"
72    ;
73
74  files[MSVC]  [GOLG]
75    + I4 "/file/win32/win_file.cc"
76    + I4 "/file/win32/get_dir.cc"
77    + I4 "/time/win_time.cc"
78   
79    + I4 "/video/win32/win32_input.cc"
80    + I4 "/video/win32/display_dialog.cc"
81   
82    + I4 "/main/win_main.cc"
83    + I4 "/time/timedev.cc"
84   
85    + I4 "/video/win32/dx5.cc"
86    + I4 "/video/win32/dx5_error.cc"
87    + I4 "/video/win32/dx5_mouse.cc"
88    + I4 "/video/win32/dx5_util.cc"
89
90    + I4 "/video/glide/glide_display.cc"
91   
92    + I4 "/file/async.cc"
93    + I4 "/threads/win32/threads.cc"
94    + I4 "/music/stream.cc"
95   
96    + I4 "/file/win32/win_open.cc"
97   
98    + I4 "/dll/win32_dll.cc"
99    ;
100
101  files[COMMON][GOLG]
102    + I4 "/inc/search.cc"
103
104    + I4 "/file/file.cc"
105    + I4 "/file/buf_file.cc"
106    + I4 "/checksum/checksum.cc"
107   
108    + I4 "/memory/malloc.cc"
109    + I4 "/memory/bmanage.cc"
110    + I4 "/memory/growheap.cc"
111   
112    + I4 "/image/image.cc"
113    + I4 "/image/image32.cc"
114    + I4 "/loaders/load.cc"
115   
116    + I4 "/loaders/tga_write.cc"
117    + I4 "/loaders/bmp_write.cc"
118   
119    + I4 "/palette/pal.cc"
120    + I4 "/error/error.cc"
121    + I4 "/error/alert.cc"
122    + I4 "/device/keys.cc"
123    + I4 "/area/rectlist.cc"
124    + I4 "/video/display.cc"
125    + I4 "/sound/sound.cc"
126   
127    + I4 "/window/cursor.cc"     // needs image/load, image/image
128    + I4 "/window/window.cc"     // needs window/cursor
129    + I4 "/window/wmanager.cc"
130    + I4 "/window/colorwin.cc"
131    + I4 "/window/dragwin.cc"
132    + I4 "/window/style.cc"
133   
134    + I4 "/menu/menu.cc"
135    + I4 "/menu/pull.cc"
136    + I4 "/menu/key_item.cc"
137   
138    + I4 "/menu/boxmenu.cc"
139    + I4 "/menu/menuitem.cc"
140    + I4 "/menu/textitem.cc"
141    + I4 "/gui/button.cc"
142    + I4 "/gui/butbox.cc"
143    + I4 "/gui/text_scroll.cc"
144    + I4 "/gui/image_win.cc"
145   
146    + I4 "/string/str_checksum.cc"
147    + I4 "/string/string.cc"
148    + I4 "/font/plain.cc"                             
149   
150    + I4 "/device/device.cc"
151    + I4 "/device/kernel.cc"
152    + I4 "/init/init.cc"
153   
154    + I4 "/time/profile.cc"
155
156    + I4 "/app/app.cc"
157    + I4 "/quantize/median.cc"
158    + I4 "/quantize/histogram.cc"
159    + I4 "/math/spline.cc"
160   
161    + I4 "/network/net_prot.cc"
162    + I4 "/network/login.cc"      // for get username
163   
164    + I4 "/status/status.cc"
165   
166    + I4 "/status/gui_stat.cc"
167   
168    + I4 "/gui/scroll_bar.cc"
169    + I4 "/gui/create_dialog.cc"
170    + I4 "/gui/slider.cc"
171    + I4 "/gui/smp_dial.cc"
172    + I4 "/gui/text_input.cc"
173    + I4 "/time/gui_prof.cc"      // to show profiling
174
175    + I4 "/loaders/jpg/jccoefct.cc" 
176    + I4 "/loaders/jpg/jcmaster.cc"
177    + I4 "/loaders/jpg/jdapistd.cc" 
178    + I4 "/loaders/jpg/jdhuff.cc"       
179    + I4 "/loaders/jpg/jdmerge.cc"   
180    + I4 "/loaders/jpg/jfdctflt.cc"     
181    + I4 "/loaders/jpg/jidctint.cc" 
182    + I4 "/loaders/jpg/jquant2.cc"
183    + I4 "/loaders/jpg/jccolor.cc"   
184    + I4 "/loaders/jpg/jcomapi.cc"     
185    + I4 "/loaders/jpg/jdatasrc.cc" 
186    + I4 "/loaders/jpg/jdinput.cc"     
187    + I4 "/loaders/jpg/jdphuff.cc"   
188    + I4 "/loaders/jpg/jfdctfst.cc"     
189    + I4 "/loaders/jpg/jidctred.cc" 
190    + I4 "/loaders/jpg/jutils.cc"
191    + I4 "/loaders/jpg/jcdctmgr.cc" 
192    + I4 "/loaders/jpg/jcparam.cc"     
193    + I4 "/loaders/jpg/jdcoefct.cc" 
194    + I4 "/loaders/jpg/jdmainct.cc"     
195    + I4 "/loaders/jpg/jdpostct.cc" 
196    + I4 "/loaders/jpg/jfdctint.cc"     
197    + I4 "/loaders/jpg/jmemmgr.cc"   
198    + I4 "/loaders/jpg/wrtarga.cc"
199    + I4 "/loaders/jpg/jchuff.cc"   
200    + I4 "/loaders/jpg/jcphuff.cc"     
201    + I4 "/loaders/jpg/jdcolor.cc"   
202    + I4 "/loaders/jpg/jdmarker.cc"     
203    + I4 "/loaders/jpg/jdsample.cc" 
204    + I4 "/loaders/jpg/jidctflt.cc"     
205    + I4 "/loaders/jpg/jmemnobs.cc"
206    + I4 "/loaders/jpg/jcmarker.cc" 
207    + I4 "/loaders/jpg/jdapimin.cc"     
208    + I4 "/loaders/jpg/jddctmgr.cc" 
209    + I4 "/loaders/jpg/jdmaster.cc"     
210    + I4 "/loaders/jpg/jerror.cc"   
211    + I4 "/loaders/jpg/jidctfst.cc"     
212    + I4 "/loaders/jpg/jquant1.cc"
213
214    ;
215
216  includes
217    + I4 "/inc"
218    + I4
219    + GLIDE_INC
220    ;
221}
222
223void main(int argc, char **argv)
224//{{{
225{
226  list plat_exe[LAST], plat_includes[LAST];
227
228  list exe_common, inc_common;
229
230  char **str;
231
232  common();
233 
234  plat_includes[MSVC]
235    + includes
236    + "c:/glide/win32/include"
237    + "$(MSDEV)/include";
238
239  plat_includes[LINUX] + includes;
240  plat_includes[SGI] + includes;
241
242 
243  for (int i=0; i<LAST; i++)
244  {   
245    target_list t;
246
247    for (int l=0; l<LIBS; l++)
248    {
249      list src;
250
251      src += files[i][l] + files[COMMON][l];
252      t += new target_t(src, plat_includes[i], blank,
253                        lib_name[l], MK_DEBUG | MK_LIB, 16);
254
255      t += new target_t(src, plat_includes[i], blank,
256                        lib_name[l], MK_OPT | MK_LIB, 16);
257    }
258
259    if (i==MSVC && (argc<=1 || strcmp(argv[1], "win95")==0))
260      make_win95(t);
261
262    if ((i==LINUX && (argc<=1 || strcmp(argv[1], "linux")==0)) ||
263        (i==SGI && (argc<=1 || strcmp(argv[1], "sgi")==0)))
264      make_unix(t,i);
265  }
266}
267//}}}
268
269
270//{{{ Emacs Locals
271// Local Variables:
272// folded-file: t
273// End:
274//}}}
Note: See TracBrowser for help on using the repository browser.