Makefile.Linux 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931
  1. #
  2. # QuakeWorld Makefile for Linux 2.0
  3. #
  4. # Apr '98 by Zoid <zoid@idsoftware.com>
  5. #
  6. # GNU Make required
  7. #
  8. # ELF only
  9. #
  10. # RPM release number
  11. RPM_RELEASE=1
  12. VERSION=2.30$(GLIBC)
  13. ifneq (,$(findstring libc6,$(shell if [ -e /lib/libc.so.6* ];then echo libc6;fi)))
  14. GLIBC=-glibc
  15. else
  16. GLIBC=
  17. endif
  18. ifneq (,$(findstring alpha,$(shell uname -m)))
  19. ARCH=axp
  20. RPMARCH=alpha
  21. else
  22. ARCH=i386
  23. RPMARCH=i386
  24. endif
  25. MAINDIR=/grog/Projects/QW
  26. BUILD_DEBUG_DIR=debug$(ARCH)$(GLIBC)
  27. BUILD_RELEASE_DIR=release$(ARCH)$(GLIBC)
  28. CLIENT_DIR=$(MAINDIR)/client
  29. SERVER_DIR=$(MAINDIR)/server
  30. MESA_DIR=/usr/local/src/Mesa-3.0
  31. CC=gcc
  32. BASE_CFLAGS=-Wall -Dstricmp=strcasecmp -I$(CLIENT_DIR) -I$(SERVER_DIR)
  33. DEBUG_CFLAGS=$(BASE_CFLAGS) -g
  34. ifeq ($(ARCH),axp)
  35. RELEASE_CFLAGS=$(BASE_CFLAGS) -ffast-math -funroll-loops \
  36. -fomit-frame-pointer -fexpensive-optimizations
  37. else
  38. RELEASE_CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
  39. -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
  40. -malign-jumps=2 -malign-functions=2
  41. endif
  42. GLCFLAGS=-DGLQUAKE -I/usr/local/src/Mesa-3.0/include -I/usr/include/glide
  43. LDFLAGS=-lm
  44. SVGALDFLAGS=-lvga
  45. XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext
  46. GL_SVGA_LDFLAGS=-L/usr/X11/lib -L/usr/local/src/Mesa-3.0/lib -lm -lMesaGL -lglide2x -lX11 -lXext -lvga
  47. GL_X11_LDFLAGS=-L/usr/X11/lib -L/usr/local/src/Mesa-3.0/lib -lm -lGL -lX11 -lXext
  48. DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
  49. DO_O_CC=$(CC) -O $(CFLAGS) -o $@ -c $<
  50. DO_GL_CC=$(CC) $(CFLAGS) $(GLCFLAGS) -o $@ -c $<
  51. DO_SERVER_CC=$(CC) -DSERVERONLY $(CFLAGS) -o $@ -c $<
  52. DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
  53. DO_GL_AS=$(CC) $(CFLAGS) $(GLCFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
  54. #############################################################################
  55. # SETUP AND BUILD
  56. #############################################################################
  57. ifeq ($(ARCH),axp)
  58. TARGETS=$(BUILDDIR)/qwsv
  59. #$(BUILDDIR)/qwcl.x11
  60. else
  61. TARGETS=$(BUILDDIR)/qwsv $(BUILDDIR)/qwcl $(BUILDDIR)/qwcl.x11 $(BUILDDIR)/glqwcl $(BUILDDIR)/glqwcl.glx
  62. endif
  63. build_debug:
  64. @-mkdir $(BUILD_DEBUG_DIR) \
  65. $(BUILD_DEBUG_DIR)/client \
  66. $(BUILD_DEBUG_DIR)/glclient \
  67. $(BUILD_DEBUG_DIR)/server
  68. $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
  69. build_release:
  70. @-mkdir $(BUILD_RELEASE_DIR) \
  71. $(BUILD_RELEASE_DIR)/client \
  72. $(BUILD_RELEASE_DIR)/glclient \
  73. $(BUILD_RELEASE_DIR)/server
  74. $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)"
  75. all: build_debug build_release
  76. targets: $(TARGETS)
  77. #############################################################################
  78. # SERVER
  79. #############################################################################
  80. QWSV_OBJS = \
  81. $(BUILDDIR)/server/pr_cmds.o \
  82. $(BUILDDIR)/server/pr_edict.o \
  83. $(BUILDDIR)/server/pr_exec.o \
  84. $(BUILDDIR)/server/sv_init.o \
  85. $(BUILDDIR)/server/sv_main.o \
  86. $(BUILDDIR)/server/sv_nchan.o \
  87. $(BUILDDIR)/server/sv_ents.o \
  88. $(BUILDDIR)/server/sv_send.o \
  89. $(BUILDDIR)/server/sv_move.o \
  90. $(BUILDDIR)/server/sv_phys.o \
  91. $(BUILDDIR)/server/sv_user.o \
  92. $(BUILDDIR)/server/sv_ccmds.o \
  93. $(BUILDDIR)/server/world.o \
  94. $(BUILDDIR)/server/sys_unix.o \
  95. $(BUILDDIR)/server/model.o \
  96. $(BUILDDIR)/server/cmd.o \
  97. $(BUILDDIR)/server/common.o \
  98. $(BUILDDIR)/server/crc.o \
  99. $(BUILDDIR)/server/cvar.o \
  100. $(BUILDDIR)/server/mathlib.o \
  101. $(BUILDDIR)/server/md4.o \
  102. $(BUILDDIR)/server/zone.o \
  103. $(BUILDDIR)/server/pmove.o \
  104. $(BUILDDIR)/server/pmovetst.o \
  105. $(BUILDDIR)/server/net_chan.o \
  106. $(BUILDDIR)/server/net_udp.o
  107. $(BUILDDIR)/qwsv : $(QWSV_OBJS)
  108. $(CC) $(CFLAGS) -o $@ $(QWSV_OBJS) $(LDFLAGS)
  109. $(BUILDDIR)/server/pr_cmds.o : $(SERVER_DIR)/pr_cmds.c
  110. $(DO_SERVER_CC)
  111. $(BUILDDIR)/server/pr_edict.o : $(SERVER_DIR)/pr_edict.c
  112. $(DO_SERVER_CC)
  113. $(BUILDDIR)/server/pr_exec.o : $(SERVER_DIR)/pr_exec.c
  114. $(DO_SERVER_CC)
  115. $(BUILDDIR)/server/sv_init.o : $(SERVER_DIR)/sv_init.c
  116. $(DO_SERVER_CC)
  117. $(BUILDDIR)/server/sv_main.o : $(SERVER_DIR)/sv_main.c
  118. $(DO_SERVER_CC)
  119. $(BUILDDIR)/server/sv_nchan.o : $(SERVER_DIR)/sv_nchan.c
  120. $(DO_SERVER_CC)
  121. $(BUILDDIR)/server/sv_ents.o : $(SERVER_DIR)/sv_ents.c
  122. $(DO_SERVER_CC)
  123. $(BUILDDIR)/server/sv_send.o : $(SERVER_DIR)/sv_send.c
  124. $(DO_SERVER_CC)
  125. $(BUILDDIR)/server/sv_move.o : $(SERVER_DIR)/sv_move.c
  126. $(DO_SERVER_CC)
  127. $(BUILDDIR)/server/sv_phys.o : $(SERVER_DIR)/sv_phys.c
  128. $(DO_SERVER_CC)
  129. $(BUILDDIR)/server/sv_user.o : $(SERVER_DIR)/sv_user.c
  130. $(DO_SERVER_CC)
  131. $(BUILDDIR)/server/sv_ccmds.o : $(SERVER_DIR)/sv_ccmds.c
  132. $(DO_SERVER_CC)
  133. $(BUILDDIR)/server/world.o : $(SERVER_DIR)/world.c
  134. $(DO_SERVER_CC)
  135. $(BUILDDIR)/server/sys_unix.o : $(SERVER_DIR)/sys_unix.c
  136. $(DO_SERVER_CC)
  137. $(BUILDDIR)/server/model.o : $(SERVER_DIR)/model.c
  138. $(DO_SERVER_CC)
  139. $(BUILDDIR)/server/cmd.o : $(CLIENT_DIR)/cmd.c
  140. $(DO_SERVER_CC)
  141. $(BUILDDIR)/server/common.o : $(CLIENT_DIR)/common.c
  142. $(DO_SERVER_CC)
  143. $(BUILDDIR)/server/crc.o : $(CLIENT_DIR)/crc.c
  144. $(DO_SERVER_CC)
  145. $(BUILDDIR)/server/cvar.o : $(CLIENT_DIR)/cvar.c
  146. $(DO_SERVER_CC)
  147. $(BUILDDIR)/server/mathlib.o : $(CLIENT_DIR)/mathlib.c
  148. $(DO_SERVER_CC)
  149. $(BUILDDIR)/server/md4.o : $(CLIENT_DIR)/md4.c
  150. $(DO_SERVER_CC)
  151. $(BUILDDIR)/server/zone.o : $(CLIENT_DIR)/zone.c
  152. $(DO_SERVER_CC)
  153. $(BUILDDIR)/server/pmove.o : $(CLIENT_DIR)/pmove.c
  154. $(DO_SERVER_CC)
  155. $(BUILDDIR)/server/pmovetst.o : $(CLIENT_DIR)/pmovetst.c
  156. $(DO_SERVER_CC)
  157. $(BUILDDIR)/server/net_chan.o : $(CLIENT_DIR)/net_chan.c
  158. $(DO_SERVER_CC)
  159. $(BUILDDIR)/server/net_udp.o : $(CLIENT_DIR)/net_udp.c
  160. $(DO_SERVER_CC)
  161. #############################################################################
  162. # CLIENT
  163. #############################################################################
  164. QWCL_OBJS = \
  165. $(BUILDDIR)/client/cl_demo.o \
  166. $(BUILDDIR)/client/cl_ents.o \
  167. $(BUILDDIR)/client/cl_input.o \
  168. $(BUILDDIR)/client/cl_main.o \
  169. $(BUILDDIR)/client/cl_parse.o \
  170. $(BUILDDIR)/client/cl_pred.o \
  171. $(BUILDDIR)/client/cl_tent.o \
  172. $(BUILDDIR)/client/cl_cam.o \
  173. $(BUILDDIR)/client/cmd.o \
  174. $(BUILDDIR)/client/common.o \
  175. $(BUILDDIR)/client/console.o \
  176. $(BUILDDIR)/client/crc.o \
  177. $(BUILDDIR)/client/cvar.o \
  178. $(BUILDDIR)/client/d_edge.o \
  179. $(BUILDDIR)/client/d_fill.o \
  180. $(BUILDDIR)/client/d_init.o \
  181. $(BUILDDIR)/client/d_modech.o \
  182. $(BUILDDIR)/client/d_part.o \
  183. $(BUILDDIR)/client/d_polyse.o \
  184. $(BUILDDIR)/client/d_scan.o \
  185. $(BUILDDIR)/client/d_sky.o \
  186. $(BUILDDIR)/client/d_sprite.o \
  187. $(BUILDDIR)/client/d_surf.o \
  188. $(BUILDDIR)/client/d_vars.o \
  189. $(BUILDDIR)/client/d_zpoint.o \
  190. $(BUILDDIR)/client/draw.o \
  191. $(BUILDDIR)/client/keys.o \
  192. $(BUILDDIR)/client/mathlib.o \
  193. $(BUILDDIR)/client/md4.o \
  194. $(BUILDDIR)/client/menu.o \
  195. $(BUILDDIR)/client/model.o \
  196. $(BUILDDIR)/client/net_chan.o \
  197. $(BUILDDIR)/client/net_udp.o \
  198. $(BUILDDIR)/client/nonintel.o \
  199. $(BUILDDIR)/client/pmove.o \
  200. $(BUILDDIR)/client/pmovetst.o \
  201. $(BUILDDIR)/client/r_aclip.o \
  202. $(BUILDDIR)/client/r_alias.o \
  203. $(BUILDDIR)/client/r_bsp.o \
  204. $(BUILDDIR)/client/r_draw.o \
  205. $(BUILDDIR)/client/r_edge.o \
  206. $(BUILDDIR)/client/r_efrag.o \
  207. $(BUILDDIR)/client/r_light.o \
  208. $(BUILDDIR)/client/r_main.o \
  209. $(BUILDDIR)/client/r_misc.o \
  210. $(BUILDDIR)/client/r_part.o \
  211. $(BUILDDIR)/client/r_sky.o \
  212. $(BUILDDIR)/client/r_sprite.o \
  213. $(BUILDDIR)/client/r_surf.o \
  214. $(BUILDDIR)/client/r_vars.o \
  215. $(BUILDDIR)/client/sbar.o \
  216. $(BUILDDIR)/client/screen.o \
  217. $(BUILDDIR)/client/skin.o \
  218. $(BUILDDIR)/client/snd_dma.o \
  219. $(BUILDDIR)/client/snd_mem.o \
  220. $(BUILDDIR)/client/snd_mix.o \
  221. $(BUILDDIR)/client/view.o \
  222. $(BUILDDIR)/client/wad.o \
  223. $(BUILDDIR)/client/zone.o \
  224. $(BUILDDIR)/client/cd_linux.o \
  225. $(BUILDDIR)/client/sys_linux.o \
  226. $(BUILDDIR)/client/snd_linux.o \
  227. ifeq ($(ARCH),i386)
  228. QWCL_AS_OBJS = \
  229. $(BUILDDIR)/client/d_copy.o \
  230. $(BUILDDIR)/client/d_draw.o \
  231. $(BUILDDIR)/client/d_draw16.o \
  232. $(BUILDDIR)/client/d_parta.o \
  233. $(BUILDDIR)/client/d_polysa.o \
  234. $(BUILDDIR)/client/d_scana.o \
  235. $(BUILDDIR)/client/d_spr8.o \
  236. $(BUILDDIR)/client/d_varsa.o \
  237. $(BUILDDIR)/client/math.o \
  238. $(BUILDDIR)/client/r_aclipa.o \
  239. $(BUILDDIR)/client/r_aliasa.o \
  240. $(BUILDDIR)/client/r_drawa.o \
  241. $(BUILDDIR)/client/r_edgea.o \
  242. $(BUILDDIR)/client/r_varsa.o \
  243. $(BUILDDIR)/client/snd_mixa.o \
  244. $(BUILDDIR)/client/surf16.o \
  245. $(BUILDDIR)/client/surf8.o \
  246. $(BUILDDIR)/client/sys_dosa.o
  247. else
  248. QWCL_AS_OBJS=
  249. endif
  250. QWCL_SVGA_OBJS = $(BUILDDIR)/client/vid_svgalib.o
  251. QWCL_X11_OBJS = $(BUILDDIR)/client/vid_x.o
  252. $(BUILDDIR)/qwcl : $(QWCL_OBJS) $(QWCL_AS_OBJS) $(QWCL_SVGA_OBJS)
  253. $(CC) $(CFLAGS) -o $@ $(QWCL_OBJS) $(QWCL_AS_OBJS) $(QWCL_SVGA_OBJS) \
  254. $(LDFLAGS) $(SVGALDFLAGS)
  255. $(BUILDDIR)/qwcl.x11 : $(QWCL_OBJS) $(QWCL_AS_OBJS) $(QWCL_X11_OBJS)
  256. $(CC) $(CFLAGS) -o $@ $(QWCL_OBJS) $(QWCL_AS_OBJS) $(QWCL_X11_OBJS) \
  257. $(LDFLAGS) $(XLDFLAGS)
  258. $(BUILDDIR)/client/cl_demo.o : $(CLIENT_DIR)/cl_demo.c
  259. $(DO_CC)
  260. $(BUILDDIR)/client/cl_ents.o : $(CLIENT_DIR)/cl_ents.c
  261. $(DO_CC)
  262. $(BUILDDIR)/client/cl_input.o : $(CLIENT_DIR)/cl_input.c
  263. $(DO_CC)
  264. $(BUILDDIR)/client/cl_main.o : $(CLIENT_DIR)/cl_main.c
  265. $(DO_CC)
  266. $(BUILDDIR)/client/cl_parse.o : $(CLIENT_DIR)/cl_parse.c
  267. $(DO_CC)
  268. $(BUILDDIR)/client/cl_pred.o : $(CLIENT_DIR)/cl_pred.c
  269. $(DO_CC)
  270. $(BUILDDIR)/client/cl_tent.o : $(CLIENT_DIR)/cl_tent.c
  271. $(DO_CC)
  272. $(BUILDDIR)/client/cl_cam.o : $(CLIENT_DIR)/cl_cam.c
  273. $(DO_CC)
  274. $(BUILDDIR)/client/cmd.o : $(CLIENT_DIR)/cmd.c
  275. $(DO_CC)
  276. $(BUILDDIR)/client/common.o : $(CLIENT_DIR)/common.c
  277. $(DO_CC)
  278. $(BUILDDIR)/client/console.o : $(CLIENT_DIR)/console.c
  279. $(DO_CC)
  280. $(BUILDDIR)/client/crc.o : $(CLIENT_DIR)/crc.c
  281. $(DO_CC)
  282. $(BUILDDIR)/client/cvar.o : $(CLIENT_DIR)/cvar.c
  283. $(DO_CC)
  284. $(BUILDDIR)/client/d_edge.o : $(CLIENT_DIR)/d_edge.c
  285. $(DO_CC)
  286. $(BUILDDIR)/client/d_fill.o : $(CLIENT_DIR)/d_fill.c
  287. $(DO_CC)
  288. $(BUILDDIR)/client/d_init.o : $(CLIENT_DIR)/d_init.c
  289. $(DO_CC)
  290. $(BUILDDIR)/client/d_modech.o : $(CLIENT_DIR)/d_modech.c
  291. $(DO_CC)
  292. $(BUILDDIR)/client/d_part.o : $(CLIENT_DIR)/d_part.c
  293. $(DO_CC)
  294. $(BUILDDIR)/client/d_polyse.o : $(CLIENT_DIR)/d_polyse.c
  295. $(DO_CC)
  296. $(BUILDDIR)/client/d_scan.o : $(CLIENT_DIR)/d_scan.c
  297. $(DO_CC)
  298. $(BUILDDIR)/client/d_sky.o : $(CLIENT_DIR)/d_sky.c
  299. $(DO_CC)
  300. $(BUILDDIR)/client/d_sprite.o : $(CLIENT_DIR)/d_sprite.c
  301. $(DO_CC)
  302. $(BUILDDIR)/client/d_surf.o : $(CLIENT_DIR)/d_surf.c
  303. $(DO_CC)
  304. $(BUILDDIR)/client/d_vars.o : $(CLIENT_DIR)/d_vars.c
  305. $(DO_CC)
  306. $(BUILDDIR)/client/d_zpoint.o : $(CLIENT_DIR)/d_zpoint.c
  307. $(DO_CC)
  308. $(BUILDDIR)/client/draw.o : $(CLIENT_DIR)/draw.c
  309. $(DO_CC)
  310. $(BUILDDIR)/client/keys.o : $(CLIENT_DIR)/keys.c
  311. $(DO_CC)
  312. $(BUILDDIR)/client/mathlib.o : $(CLIENT_DIR)/mathlib.c
  313. $(DO_CC)
  314. $(BUILDDIR)/client/md4.o : $(CLIENT_DIR)/md4.c
  315. $(DO_CC)
  316. $(BUILDDIR)/client/menu.o : $(CLIENT_DIR)/menu.c
  317. $(DO_CC)
  318. $(BUILDDIR)/client/model.o : $(CLIENT_DIR)/model.c
  319. $(DO_CC)
  320. $(BUILDDIR)/client/net_chan.o : $(CLIENT_DIR)/net_chan.c
  321. $(DO_CC)
  322. $(BUILDDIR)/client/net_udp.o : $(CLIENT_DIR)/net_udp.c
  323. $(DO_CC)
  324. $(BUILDDIR)/client/nonintel.o : $(CLIENT_DIR)/nonintel.c
  325. $(DO_CC)
  326. $(BUILDDIR)/client/pmove.o : $(CLIENT_DIR)/pmove.c
  327. $(DO_CC)
  328. $(BUILDDIR)/client/pmovetst.o : $(CLIENT_DIR)/pmovetst.c
  329. $(DO_CC)
  330. $(BUILDDIR)/client/r_aclip.o : $(CLIENT_DIR)/r_aclip.c
  331. $(DO_CC)
  332. $(BUILDDIR)/client/r_alias.o : $(CLIENT_DIR)/r_alias.c
  333. $(DO_CC)
  334. $(BUILDDIR)/client/r_bsp.o : $(CLIENT_DIR)/r_bsp.c
  335. $(DO_CC)
  336. $(BUILDDIR)/client/r_draw.o : $(CLIENT_DIR)/r_draw.c
  337. $(DO_CC)
  338. $(BUILDDIR)/client/r_edge.o : $(CLIENT_DIR)/r_edge.c
  339. $(DO_CC)
  340. $(BUILDDIR)/client/r_efrag.o : $(CLIENT_DIR)/r_efrag.c
  341. $(DO_CC)
  342. $(BUILDDIR)/client/r_light.o : $(CLIENT_DIR)/r_light.c
  343. $(DO_CC)
  344. $(BUILDDIR)/client/r_main.o : $(CLIENT_DIR)/r_main.c
  345. $(DO_CC)
  346. $(BUILDDIR)/client/r_misc.o : $(CLIENT_DIR)/r_misc.c
  347. $(DO_CC)
  348. $(BUILDDIR)/client/r_part.o : $(CLIENT_DIR)/r_part.c
  349. $(DO_CC)
  350. $(BUILDDIR)/client/r_sky.o : $(CLIENT_DIR)/r_sky.c
  351. $(DO_CC)
  352. $(BUILDDIR)/client/r_sprite.o : $(CLIENT_DIR)/r_sprite.c
  353. $(DO_CC)
  354. $(BUILDDIR)/client/r_surf.o : $(CLIENT_DIR)/r_surf.c
  355. $(DO_CC)
  356. $(BUILDDIR)/client/r_vars.o : $(CLIENT_DIR)/r_vars.c
  357. $(DO_CC)
  358. $(BUILDDIR)/client/sbar.o : $(CLIENT_DIR)/sbar.c
  359. $(DO_CC)
  360. $(BUILDDIR)/client/screen.o : $(CLIENT_DIR)/screen.c
  361. $(DO_CC)
  362. $(BUILDDIR)/client/skin.o : $(CLIENT_DIR)/skin.c
  363. $(DO_CC)
  364. $(BUILDDIR)/client/snd_dma.o : $(CLIENT_DIR)/snd_dma.c
  365. $(DO_CC)
  366. $(BUILDDIR)/client/snd_mem.o : $(CLIENT_DIR)/snd_mem.c
  367. $(DO_CC)
  368. $(BUILDDIR)/client/snd_mix.o : $(CLIENT_DIR)/snd_mix.c
  369. $(DO_CC)
  370. $(BUILDDIR)/client/view.o : $(CLIENT_DIR)/view.c
  371. $(DO_CC)
  372. $(BUILDDIR)/client/wad.o : $(CLIENT_DIR)/wad.c
  373. $(DO_CC)
  374. $(BUILDDIR)/client/zone.o : $(CLIENT_DIR)/zone.c
  375. $(DO_CC)
  376. $(BUILDDIR)/client/cd_linux.o : $(CLIENT_DIR)/cd_linux.c
  377. $(DO_CC)
  378. $(BUILDDIR)/client/sys_linux.o : $(CLIENT_DIR)/sys_linux.c
  379. $(DO_CC)
  380. $(BUILDDIR)/client/snd_linux.o : $(CLIENT_DIR)/snd_linux.c
  381. $(DO_CC)
  382. $(BUILDDIR)/client/d_copy.o : $(CLIENT_DIR)/d_copy.s
  383. $(DO_AS)
  384. $(BUILDDIR)/client/d_draw.o : $(CLIENT_DIR)/d_draw.s
  385. $(DO_AS)
  386. $(BUILDDIR)/client/d_draw16.o : $(CLIENT_DIR)/d_draw16.s
  387. $(DO_AS)
  388. $(BUILDDIR)/client/d_parta.o : $(CLIENT_DIR)/d_parta.s
  389. $(DO_AS)
  390. $(BUILDDIR)/client/d_polysa.o : $(CLIENT_DIR)/d_polysa.s
  391. $(DO_AS)
  392. $(BUILDDIR)/client/d_scana.o : $(CLIENT_DIR)/d_scana.s
  393. $(DO_AS)
  394. $(BUILDDIR)/client/d_spr8.o : $(CLIENT_DIR)/d_spr8.s
  395. $(DO_AS)
  396. $(BUILDDIR)/client/d_varsa.o : $(CLIENT_DIR)/d_varsa.s
  397. $(DO_AS)
  398. $(BUILDDIR)/client/math.o : $(CLIENT_DIR)/math.s
  399. $(DO_AS)
  400. $(BUILDDIR)/client/r_aclipa.o : $(CLIENT_DIR)/r_aclipa.s
  401. $(DO_AS)
  402. $(BUILDDIR)/client/r_aliasa.o : $(CLIENT_DIR)/r_aliasa.s
  403. $(DO_AS)
  404. $(BUILDDIR)/client/r_drawa.o : $(CLIENT_DIR)/r_drawa.s
  405. $(DO_AS)
  406. $(BUILDDIR)/client/r_edgea.o : $(CLIENT_DIR)/r_edgea.s
  407. $(DO_AS)
  408. $(BUILDDIR)/client/r_varsa.o : $(CLIENT_DIR)/r_varsa.s
  409. $(DO_AS)
  410. $(BUILDDIR)/client/snd_mixa.o : $(CLIENT_DIR)/snd_mixa.s
  411. $(DO_AS)
  412. $(BUILDDIR)/client/surf16.o : $(CLIENT_DIR)/surf16.s
  413. $(DO_AS)
  414. $(BUILDDIR)/client/surf8.o : $(CLIENT_DIR)/surf8.s
  415. $(DO_AS)
  416. $(BUILDDIR)/client/sys_dosa.o : $(CLIENT_DIR)/sys_dosa.s
  417. $(DO_AS)
  418. $(BUILDDIR)/client/vid_svgalib.o : $(CLIENT_DIR)/vid_svgalib.c
  419. $(DO_O_CC)
  420. $(BUILDDIR)/client/vid_x.o : $(CLIENT_DIR)/vid_x.c
  421. $(DO_CC)
  422. #############################################################################
  423. # GL CLIENT
  424. #############################################################################
  425. GLQWCL_OBJS = \
  426. $(BUILDDIR)/glclient/cl_demo.o \
  427. $(BUILDDIR)/glclient/cl_ents.o \
  428. $(BUILDDIR)/glclient/cl_input.o \
  429. $(BUILDDIR)/glclient/cl_main.o \
  430. $(BUILDDIR)/glclient/cl_parse.o \
  431. $(BUILDDIR)/glclient/cl_pred.o \
  432. $(BUILDDIR)/glclient/cl_tent.o \
  433. $(BUILDDIR)/glclient/cl_cam.o \
  434. $(BUILDDIR)/glclient/cmd.o \
  435. $(BUILDDIR)/glclient/common.o \
  436. $(BUILDDIR)/glclient/console.o \
  437. $(BUILDDIR)/glclient/crc.o \
  438. $(BUILDDIR)/glclient/cvar.o \
  439. $(BUILDDIR)/glclient/keys.o \
  440. $(BUILDDIR)/glclient/mathlib.o \
  441. $(BUILDDIR)/glclient/md4.o \
  442. $(BUILDDIR)/glclient/menu.o \
  443. $(BUILDDIR)/glclient/net_chan.o \
  444. $(BUILDDIR)/glclient/net_udp.o \
  445. $(BUILDDIR)/glclient/nonintel.o \
  446. $(BUILDDIR)/glclient/pmove.o \
  447. $(BUILDDIR)/glclient/pmovetst.o \
  448. $(BUILDDIR)/glclient/r_part.o \
  449. $(BUILDDIR)/glclient/sbar.o \
  450. $(BUILDDIR)/glclient/skin.o \
  451. $(BUILDDIR)/glclient/snd_dma.o \
  452. $(BUILDDIR)/glclient/snd_mem.o \
  453. $(BUILDDIR)/glclient/snd_mix.o \
  454. $(BUILDDIR)/glclient/view.o \
  455. $(BUILDDIR)/glclient/wad.o \
  456. $(BUILDDIR)/glclient/zone.o \
  457. $(BUILDDIR)/glclient/cd_linux.o \
  458. $(BUILDDIR)/glclient/sys_linux.o \
  459. $(BUILDDIR)/glclient/snd_linux.o \
  460. \
  461. $(BUILDDIR)/glclient/gl_draw.o \
  462. $(BUILDDIR)/glclient/gl_mesh.o \
  463. $(BUILDDIR)/glclient/gl_model.o \
  464. $(BUILDDIR)/glclient/gl_ngraph.o \
  465. $(BUILDDIR)/glclient/gl_refrag.o \
  466. $(BUILDDIR)/glclient/gl_rlight.o \
  467. $(BUILDDIR)/glclient/gl_rmain.o \
  468. $(BUILDDIR)/glclient/gl_rmisc.o \
  469. $(BUILDDIR)/glclient/gl_rsurf.o \
  470. $(BUILDDIR)/glclient/gl_screen.o \
  471. $(BUILDDIR)/glclient/gl_warp.o \
  472. \
  473. $(BUILDDIR)/glclient/math.o \
  474. $(BUILDDIR)/glclient/snd_mixa.o \
  475. $(BUILDDIR)/glclient/sys_dosa.o
  476. GLQWCL_SVGA_OBJS = $(BUILDDIR)/glclient/gl_vidlinux.o
  477. GLQWCL_X11_OBJS = $(BUILDDIR)/glclient/gl_vidlinuxglx.o
  478. $(BUILDDIR)/glqwcl : $(GLQWCL_OBJS) $(GLQWCL_SVGA_OBJS)
  479. $(CC) $(CFLAGS) -o $@ $(GLQWCL_OBJS) $(GLQWCL_SVGA_OBJS) $(LDFLAGS) $(GL_SVGA_LDFLAGS)
  480. $(BUILDDIR)/glqwcl.glx : $(GLQWCL_OBJS) $(GLQWCL_X11_OBJS)
  481. $(CC) $(CFLAGS) -o $@ $(GLQWCL_OBJS) $(GLQWCL_X11_OBJS) $(LDFLAGS) $(GL_X11_LDFLAGS)
  482. $(BUILDDIR)/glclient/cl_demo.o : $(CLIENT_DIR)/cl_demo.c
  483. $(DO_GL_CC)
  484. $(BUILDDIR)/glclient/cl_ents.o : $(CLIENT_DIR)/cl_ents.c
  485. $(DO_GL_CC)
  486. $(BUILDDIR)/glclient/cl_input.o : $(CLIENT_DIR)/cl_input.c
  487. $(DO_GL_CC)
  488. $(BUILDDIR)/glclient/cl_main.o : $(CLIENT_DIR)/cl_main.c
  489. $(DO_GL_CC)
  490. $(BUILDDIR)/glclient/cl_parse.o : $(CLIENT_DIR)/cl_parse.c
  491. $(DO_GL_CC)
  492. $(BUILDDIR)/glclient/cl_pred.o : $(CLIENT_DIR)/cl_pred.c
  493. $(DO_GL_CC)
  494. $(BUILDDIR)/glclient/cl_tent.o : $(CLIENT_DIR)/cl_tent.c
  495. $(DO_GL_CC)
  496. $(BUILDDIR)/glclient/cl_cam.o : $(CLIENT_DIR)/cl_cam.c
  497. $(DO_GL_CC)
  498. $(BUILDDIR)/glclient/cmd.o : $(CLIENT_DIR)/cmd.c
  499. $(DO_GL_CC)
  500. $(BUILDDIR)/glclient/common.o : $(CLIENT_DIR)/common.c
  501. $(DO_GL_CC)
  502. $(BUILDDIR)/glclient/console.o : $(CLIENT_DIR)/console.c
  503. $(DO_GL_CC)
  504. $(BUILDDIR)/glclient/crc.o : $(CLIENT_DIR)/crc.c
  505. $(DO_GL_CC)
  506. $(BUILDDIR)/glclient/cvar.o : $(CLIENT_DIR)/cvar.c
  507. $(DO_GL_CC)
  508. $(BUILDDIR)/glclient/keys.o : $(CLIENT_DIR)/keys.c
  509. $(DO_GL_CC)
  510. $(BUILDDIR)/glclient/mathlib.o : $(CLIENT_DIR)/mathlib.c
  511. $(DO_GL_CC)
  512. $(BUILDDIR)/glclient/md4.o : $(CLIENT_DIR)/md4.c
  513. $(DO_GL_CC)
  514. $(BUILDDIR)/glclient/menu.o : $(CLIENT_DIR)/menu.c
  515. $(DO_GL_CC)
  516. $(BUILDDIR)/glclient/net_chan.o : $(CLIENT_DIR)/net_chan.c
  517. $(DO_GL_CC)
  518. $(BUILDDIR)/glclient/net_udp.o : $(CLIENT_DIR)/net_udp.c
  519. $(DO_GL_CC)
  520. $(BUILDDIR)/glclient/nonintel.o : $(CLIENT_DIR)/nonintel.c
  521. $(DO_GL_CC)
  522. $(BUILDDIR)/glclient/pmove.o : $(CLIENT_DIR)/pmove.c
  523. $(DO_GL_CC)
  524. $(BUILDDIR)/glclient/pmovetst.o : $(CLIENT_DIR)/pmovetst.c
  525. $(DO_GL_CC)
  526. $(BUILDDIR)/glclient/r_part.o : $(CLIENT_DIR)/r_part.c
  527. $(DO_GL_CC)
  528. $(BUILDDIR)/glclient/sbar.o : $(CLIENT_DIR)/sbar.c
  529. $(DO_GL_CC)
  530. $(BUILDDIR)/glclient/screen.o : $(CLIENT_DIR)/screen.c
  531. $(DO_GL_CC)
  532. $(BUILDDIR)/glclient/skin.o : $(CLIENT_DIR)/skin.c
  533. $(DO_GL_CC)
  534. $(BUILDDIR)/glclient/snd_dma.o : $(CLIENT_DIR)/snd_dma.c
  535. $(DO_GL_CC)
  536. $(BUILDDIR)/glclient/snd_mem.o : $(CLIENT_DIR)/snd_mem.c
  537. $(DO_GL_CC)
  538. $(BUILDDIR)/glclient/snd_mix.o : $(CLIENT_DIR)/snd_mix.c
  539. $(DO_GL_CC)
  540. $(BUILDDIR)/glclient/view.o : $(CLIENT_DIR)/view.c
  541. $(DO_GL_CC)
  542. $(BUILDDIR)/glclient/wad.o : $(CLIENT_DIR)/wad.c
  543. $(DO_GL_CC)
  544. $(BUILDDIR)/glclient/zone.o : $(CLIENT_DIR)/zone.c
  545. $(DO_GL_CC)
  546. $(BUILDDIR)/glclient/cd_linux.o : $(CLIENT_DIR)/cd_linux.c
  547. $(DO_GL_CC)
  548. $(BUILDDIR)/glclient/sys_linux.o : $(CLIENT_DIR)/sys_linux.c
  549. $(DO_GL_CC)
  550. $(BUILDDIR)/glclient/snd_linux.o : $(CLIENT_DIR)/snd_linux.c
  551. $(DO_GL_CC)
  552. $(BUILDDIR)/glclient/gl_draw.o : $(CLIENT_DIR)/gl_draw.c
  553. $(DO_GL_CC)
  554. $(BUILDDIR)/glclient/gl_mesh.o : $(CLIENT_DIR)/gl_mesh.c
  555. $(DO_GL_CC)
  556. $(BUILDDIR)/glclient/gl_model.o : $(CLIENT_DIR)/gl_model.c
  557. $(DO_GL_CC)
  558. $(BUILDDIR)/glclient/gl_ngraph.o : $(CLIENT_DIR)/gl_ngraph.c
  559. $(DO_GL_CC)
  560. $(BUILDDIR)/glclient/gl_refrag.o : $(CLIENT_DIR)/gl_refrag.c
  561. $(DO_GL_CC)
  562. $(BUILDDIR)/glclient/gl_rlight.o : $(CLIENT_DIR)/gl_rlight.c
  563. $(DO_GL_CC)
  564. $(BUILDDIR)/glclient/gl_rmain.o : $(CLIENT_DIR)/gl_rmain.c
  565. $(DO_GL_CC)
  566. $(BUILDDIR)/glclient/gl_rmisc.o : $(CLIENT_DIR)/gl_rmisc.c
  567. $(DO_GL_CC)
  568. $(BUILDDIR)/glclient/gl_rsurf.o : $(CLIENT_DIR)/gl_rsurf.c
  569. $(DO_GL_CC)
  570. $(BUILDDIR)/glclient/gl_screen.o : $(CLIENT_DIR)/gl_screen.c
  571. $(DO_GL_CC)
  572. $(BUILDDIR)/glclient/gl_vidlinux.o : $(CLIENT_DIR)/gl_vidlinux.c
  573. $(DO_GL_CC)
  574. $(BUILDDIR)/glclient/gl_vidlinuxglx.o : $(CLIENT_DIR)/gl_vidlinuxglx.c
  575. $(DO_GL_CC)
  576. $(BUILDDIR)/glclient/gl_warp.o : $(CLIENT_DIR)/gl_warp.c
  577. $(DO_GL_CC)
  578. $(BUILDDIR)/glclient/math.o : $(CLIENT_DIR)/math.s
  579. $(DO_GL_AS)
  580. $(BUILDDIR)/glclient/snd_mixa.o : $(CLIENT_DIR)/snd_mixa.s
  581. $(DO_GL_AS)
  582. $(BUILDDIR)/glclient/sys_dosa.o : $(CLIENT_DIR)/sys_dosa.s
  583. $(DO_GL_AS)
  584. #############################################################################
  585. # RPM
  586. #############################################################################
  587. # Make RPMs. You need to be root to make this work
  588. RPMROOT=/usr/src/redhat
  589. RPM = rpm
  590. RPMFLAGS = -bb
  591. INSTALLDIR = /usr/local/games/quake
  592. ifeq ($(ARCH),axp)
  593. rpm: rpm-qwsv
  594. tar: tar-qwsv
  595. else
  596. rpm: rpm-qwcl rpm-qwsv
  597. tar: tar-qwcl tar-qwsv
  598. endif
  599. QWCL_RPMDIR=/var/tmp/qwcl-$(VERSION)
  600. TDFXGL_DIR=/home/zoid/3dfxgl
  601. QWPROGS = \
  602. $(MAINDIR)/progs/buttons.qc \
  603. $(MAINDIR)/progs/client.qc \
  604. $(MAINDIR)/progs/combat.qc \
  605. $(MAINDIR)/progs/defs.qc \
  606. $(MAINDIR)/progs/doors.qc \
  607. $(MAINDIR)/progs/items.qc \
  608. $(MAINDIR)/progs/misc.qc \
  609. $(MAINDIR)/progs/models.qc \
  610. $(MAINDIR)/progs/plats.qc \
  611. $(MAINDIR)/progs/player.qc \
  612. $(MAINDIR)/progs/progdefs.h \
  613. $(MAINDIR)/progs/progs.src \
  614. $(MAINDIR)/progs/qwprogs.dat \
  615. $(MAINDIR)/progs/server.qc \
  616. $(MAINDIR)/progs/spectate.qc \
  617. $(MAINDIR)/progs/sprites.qc \
  618. $(MAINDIR)/progs/subs.qc \
  619. $(MAINDIR)/progs/triggers.qc \
  620. $(MAINDIR)/progs/weapons.qc \
  621. $(MAINDIR)/progs/world.qc
  622. rpm-qwcl: qwcl.spec \
  623. $(BUILD_RELEASE_DIR)/qwcl \
  624. $(BUILD_RELEASE_DIR)/glqwcl \
  625. $(BUILD_RELEASE_DIR)/glqwcl.glx \
  626. $(BUILD_RELEASE_DIR)/qwcl.x11
  627. touch $(RPMROOT)/SOURCES/qwcl-$(VERSION).tar.gz
  628. if [ ! -d archives ];then mkdir archives;fi
  629. $(MAKE) copyfiles-qwcl DESTDIR=$(QWCL_RPMDIR)/$(INSTALLDIR)
  630. cp qwcl.spec $(RPMROOT)/SPECS/qwcl.spec
  631. cp $(MAINDIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
  632. cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) qwcl.spec
  633. cp $(RPMROOT)/RPMS/$(RPMARCH)/qwcl-$(VERSION)-$(RPM_RELEASE).$(RPMARCH).rpm archives/.
  634. rm -rf $(QWCL_RPMDIR)
  635. tar-qwcl: $(BUILD_RELEASE_DIR)/qwcl \
  636. $(BUILD_RELEASE_DIR)/glqwcl \
  637. $(BUILD_RELEASE_DIR)/glqwcl.glx \
  638. $(BUILD_RELEASE_DIR)/qwcl.x11
  639. if [ ! -d archives ];then mkdir archives;fi
  640. $(MAKE) copyfiles-qwcl DESTDIR=$(QWCL_RPMDIR)/$(INSTALLDIR)
  641. cd $(QWCL_RPMDIR)/$(INSTALLDIR); tar czvf qwcl-$(VERSION)-$(RPMARCH)-unknown-linux2.0.tar.gz *
  642. mv $(QWCL_RPMDIR)/$(INSTALLDIR)/*.tar.gz archives/.
  643. rm -rf $(QWCL_RPMDIR)
  644. copyfiles-qwcl:
  645. -mkdirhier $(DESTDIR)
  646. -mkdirhier $(DESTDIR)/qw
  647. -mkdirhier $(DESTDIR)/qw/skins
  648. cp $(BUILD_RELEASE_DIR)/qwcl $(DESTDIR)/.
  649. strip $(DESTDIR)/qwcl
  650. chmod 4755 $(DESTDIR)/qwcl
  651. cp $(BUILD_RELEASE_DIR)/qwcl.x11 $(DESTDIR)/.
  652. strip $(DESTDIR)/qwcl.x11
  653. chmod 755 $(DESTDIR)/qwcl.x11
  654. cp $(BUILD_RELEASE_DIR)/glqwcl $(DESTDIR)/.
  655. strip $(DESTDIR)/glqwcl
  656. chmod 4755 $(DESTDIR)/glqwcl
  657. cp $(BUILD_RELEASE_DIR)/glqwcl.glx $(DESTDIR)/.
  658. strip $(DESTDIR)/glqwcl.glx
  659. chmod 4755 $(DESTDIR)/glqwcl.glx
  660. cp $(TDFXGL_DIR)/release$(ARCH)/lib3dfxgl.so $(DESTDIR)/.
  661. chmod 755 $(DESTDIR)/lib3dfxgl.so
  662. cp $(MAINDIR)/glqwcl.3dfxgl $(DESTDIR)/.
  663. chmod 755 $(DESTDIR)/glqwcl.3dfxgl
  664. cp $(MAINDIR)/docs/README.qwcl $(DESTDIR)/.
  665. chmod 644 $(DESTDIR)/README.qwcl
  666. cp $(MAINDIR)/fixskins.sh $(DESTDIR)/qw/skins/.
  667. chmod 755 $(DESTDIR)/qw/skins/fixskins.sh
  668. cp $(MESA_DIR)/lib/libMesaGL.so.2.6 $(DESTDIR)
  669. chmod 755 $(DESTDIR)/libMesaGL.so.2.6
  670. cd $(DESTDIR); ln -sf libMesaGL.so.2.6 libMesaGL.so.2
  671. cd $(DESTDIR); ln -sf libMesaGL.so.2 libMesaGL.so
  672. cd $(DESTDIR); ln -sf libMesaGL.so libGL.so
  673. qwcl.spec : $(MAINDIR)/qwcl.spec.sh $(BUILD_RELEASE_DIR)/qwcl
  674. sh $< $(VERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
  675. QWSV_RPMDIR=/var/tmp/qwsv-$(VERSION)
  676. rpm-qwsv: qwsv.spec $(BUILD_RELEASE_DIR)/qwsv $(QWPROGS)
  677. touch $(RPMROOT)/SOURCES/qwsv-$(VERSION).tar.gz
  678. if [ ! -d archives ];then mkdir archives;fi
  679. $(MAKE) copyfiles-qwsv DESTDIR=$(QWSV_RPMDIR)/$(INSTALLDIR)
  680. cp qwsv.spec $(RPMROOT)/SPECS/qwsv.spec
  681. cp $(MAINDIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
  682. cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) qwsv.spec
  683. cp $(RPMROOT)/RPMS/$(RPMARCH)/qwsv-$(VERSION)-$(RPM_RELEASE).$(RPMARCH).rpm archives/.
  684. rm -rf $(QWSV_RPMDIR)
  685. tar-qwsv: $(BUILD_RELEASE_DIR)/qwsv $(QWPROGS)
  686. if [ ! -d archives ];then mkdir archives;fi
  687. $(MAKE) copyfiles-qwsv DESTDIR=$(QWSV_RPMDIR)/$(INSTALLDIR)
  688. cd $(QWSV_RPMDIR)/$(INSTALLDIR); tar czvf qwsv-$(VERSION)-$(RPMARCH)-unknown-linux2.0.tar.gz *
  689. mv $(QWSV_RPMDIR)/$(INSTALLDIR)/*.tar.gz archives/.
  690. rm -rf $(QWSV_RPMDIR)
  691. copyfiles-qwsv:
  692. -mkdirhier $(DESTDIR)
  693. -mkdirhier $(DESTDIR)/qw
  694. -mkdirhier $(DESTDIR)/qw/skins
  695. cp $(BUILD_RELEASE_DIR)/qwsv $(DESTDIR)/.
  696. strip $(DESTDIR)/qwsv
  697. chmod 755 $(DESTDIR)/qwsv
  698. cp $(MAINDIR)/docs/README.qwsv $(DESTDIR)/.
  699. chmod 644 $(DESTDIR)/README.qwsv
  700. cp $(QWPROGS) $(DESTDIR)/qw/.
  701. cd $(DESTDIR)/qw; chmod 644 *
  702. chmod 755 $(DESTDIR)/qw/skins
  703. cp $(MAINDIR)/fixskins.sh $(DESTDIR)/qw/skins/.
  704. chmod 755 $(DESTDIR)/qw/skins/fixskins.sh
  705. qwsv.spec : $(MAINDIR)/qwsv.spec.sh $(BUILD_RELEASE_DIR)/qwsv
  706. sh $< $(VERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
  707. #############################################################################
  708. # MISC
  709. #############################################################################
  710. clean: clean-debug clean-release
  711. clean-debug:
  712. $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
  713. clean-release:
  714. $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)"
  715. clean2:
  716. -rm -f $(QWSV_OBJS) \
  717. $(QWCL_OBJS) \
  718. $(QWCL_AS_OBJS) \
  719. $(QWCL_SVGA_OBJS) \
  720. $(QWCL_X11_OBJS) \
  721. $(GLQWCL_OBJS) \