12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241 |
- #
- # Quake Makefile for Linux 2.0
- #
- # Aug '98 by Zoid <zoid@idsoftware.com>
- #
- # ELF only
- #
- BASEVERSION=1.09
- VERSION=$(BASEVERSION)$(GLIBC)
- # RPM release number
- RPM_RELEASE=5
- ifneq (,$(findstring libc6,$(shell if [ -e /lib/libc.so.6 ];then echo libc6;fi)))
- GLIBC=-glibc
- else
- GLIBC=
- endif
- ifneq (,$(findstring alpha,$(shell uname -m)))
- ARCH=axp
- else
- ARCH=i386
- endif
- NOARCH=noarch
- MOUNT_DIR=/grog/Projects/WinQuake
- MASTER_DIR=/grog/Projects/QuakeMaster
- MESA_DIR=/usr/local/src/Mesa-2.6
- TDFXGL_DIR = /home/zoid/3dfxgl
- BUILD_DEBUG_DIR=debug$(ARCH)$(GLIBC)
- BUILD_RELEASE_DIR=release$(ARCH)$(GLIBC)
- EGCS=/usr/local/egcs-1.1.2/bin/gcc
- CC=$(EGCS)
- BASE_CFLAGS=-Dstricmp=strcasecmp
- RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \
- -fomit-frame-pointer -fexpensive-optimizations
- DEBUG_CFLAGS=$(BASE_CFLAGS) -g
- LDFLAGS=-lm
- SVGALDFLAGS=-lvga
- XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga
- XCFLAGS=-DX11
- MESAGLLDFLAGS=-L/usr/X11/lib -L/usr/local/lib -L$(MESA_DIR)/lib -lMesaGL -lglide2x -lX11 -lXext -ldl
- TDFXGLLDFLAGS=-L$(TDFXGL_DIR)/release$(ARCH)$(GLIBC) -l3dfxgl -lglide2x -ldl
- GLLDFLAGS=-L/usr/X11/lib -L/usr/local/lib -lGL -lX11 -lXext -ldl -lXxf86dga -lXxf86vm -lm
- GLCFLAGS=-DGLQUAKE -I$(MESA_DIR)/include -I/usr/include/glide
- DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
- DO_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) -o $@ -c $<
- DO_GL_CC=$(CC) $(CFLAGS) $(GLCFLAGS) -o $@ -c $<
- DO_GL_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(GLCFLAGS) -o $@ -c $<
- DO_X11_CC=$(CC) $(CFLAGS) $(XCFLAGS) -o $@ -c $<
- DO_X11_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(XCFLAGS) -o $@ -c $<
- DO_O_CC=$(CC) -O $(CFLAGS) -o $@ -c $<
- DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
- DO_GL_AS=$(CC) $(CFLAGS) $(GLCFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
- #############################################################################
- # SETUP AND BUILD
- #############################################################################
- TARGETS=$(BUILDDIR)/bin/squake \
- $(BUILDDIR)/bin/glquake \
- $(BUILDDIR)/bin/glquake.glx \
- $(BUILDDIR)/bin/glquake.3dfxgl \
- $(BUILDDIR)/bin/quake.x11
- # $(BUILDDIR)/bin/unixded
- build_debug:
- @-mkdir $(BUILD_DEBUG_DIR) \
- $(BUILD_DEBUG_DIR)/bin \
- $(BUILD_DEBUG_DIR)/glquake \
- $(BUILD_DEBUG_DIR)/squake \
- $(BUILD_DEBUG_DIR)/unixded \
- $(BUILD_DEBUG_DIR)/x11
- $(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
- build_release:
- @-mkdir $(BUILD_RELEASE_DIR) \
- $(BUILD_RELEASE_DIR)/bin \
- $(BUILD_RELEASE_DIR)/glquake \
- $(BUILD_RELEASE_DIR)/squake \
- $(BUILD_RELEASE_DIR)/unixded \
- $(BUILD_RELEASE_DIR)/x11
- $(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)"
- all: build_debug build_release
- targets: $(TARGETS)
- #############################################################################
- # SVGALIB Quake
- #############################################################################
- SQUAKE_OBJS = \
- $(BUILDDIR)/squake/cl_demo.o \
- $(BUILDDIR)/squake/cl_input.o \
- $(BUILDDIR)/squake/cl_main.o \
- $(BUILDDIR)/squake/cl_parse.o \
- $(BUILDDIR)/squake/cl_tent.o \
- $(BUILDDIR)/squake/chase.o \
- $(BUILDDIR)/squake/cmd.o \
- $(BUILDDIR)/squake/common.o \
- $(BUILDDIR)/squake/console.o \
- $(BUILDDIR)/squake/crc.o \
- $(BUILDDIR)/squake/cvar.o \
- $(BUILDDIR)/squake/draw.o \
- $(BUILDDIR)/squake/d_edge.o \
- $(BUILDDIR)/squake/d_fill.o \
- $(BUILDDIR)/squake/d_init.o \
- $(BUILDDIR)/squake/d_modech.o \
- $(BUILDDIR)/squake/d_part.o \
- $(BUILDDIR)/squake/d_polyse.o \
- $(BUILDDIR)/squake/d_scan.o \
- $(BUILDDIR)/squake/d_sky.o \
- $(BUILDDIR)/squake/d_sprite.o \
- $(BUILDDIR)/squake/d_surf.o \
- $(BUILDDIR)/squake/d_vars.o \
- $(BUILDDIR)/squake/d_zpoint.o \
- $(BUILDDIR)/squake/host.o \
- $(BUILDDIR)/squake/host_cmd.o \
- $(BUILDDIR)/squake/keys.o \
- $(BUILDDIR)/squake/menu.o \
- $(BUILDDIR)/squake/mathlib.o \
- $(BUILDDIR)/squake/model.o \
- $(BUILDDIR)/squake/net_dgrm.o \
- $(BUILDDIR)/squake/net_loop.o \
- $(BUILDDIR)/squake/net_main.o \
- $(BUILDDIR)/squake/net_vcr.o \
- $(BUILDDIR)/squake/net_udp.o \
- $(BUILDDIR)/squake/net_bsd.o \
- $(BUILDDIR)/squake/nonintel.o \
- $(BUILDDIR)/squake/pr_cmds.o \
- $(BUILDDIR)/squake/pr_edict.o \
- $(BUILDDIR)/squake/pr_exec.o \
- $(BUILDDIR)/squake/r_aclip.o \
- $(BUILDDIR)/squake/r_alias.o \
- $(BUILDDIR)/squake/r_bsp.o \
- $(BUILDDIR)/squake/r_light.o \
- $(BUILDDIR)/squake/r_draw.o \
- $(BUILDDIR)/squake/r_efrag.o \
- $(BUILDDIR)/squake/r_edge.o \
- $(BUILDDIR)/squake/r_misc.o \
- $(BUILDDIR)/squake/r_main.o \
- $(BUILDDIR)/squake/r_sky.o \
- $(BUILDDIR)/squake/r_sprite.o \
- $(BUILDDIR)/squake/r_surf.o \
- $(BUILDDIR)/squake/r_part.o \
- $(BUILDDIR)/squake/r_vars.o \
- $(BUILDDIR)/squake/screen.o \
- $(BUILDDIR)/squake/sbar.o \
- $(BUILDDIR)/squake/sv_main.o \
- $(BUILDDIR)/squake/sv_phys.o \
- $(BUILDDIR)/squake/sv_move.o \
- $(BUILDDIR)/squake/sv_user.o \
- $(BUILDDIR)/squake/zone.o \
- $(BUILDDIR)/squake/view.o \
- $(BUILDDIR)/squake/wad.o \
- $(BUILDDIR)/squake/world.o \
- $(BUILDDIR)/squake/cd_linux.o \
- $(BUILDDIR)/squake/sys_linux.o \
- $(BUILDDIR)/squake/vid_svgalib.o \
- $(BUILDDIR)/squake/snd_dma.o \
- $(BUILDDIR)/squake/snd_mem.o \
- $(BUILDDIR)/squake/snd_mix.o \
- $(BUILDDIR)/squake/snd_linux.o \
- \
- $(BUILDDIR)/squake/d_copy.o \
- $(BUILDDIR)/squake/d_draw.o \
- $(BUILDDIR)/squake/d_draw16.o \
- $(BUILDDIR)/squake/d_parta.o \
- $(BUILDDIR)/squake/d_polysa.o \
- $(BUILDDIR)/squake/d_scana.o \
- $(BUILDDIR)/squake/d_spr8.o \
- $(BUILDDIR)/squake/d_varsa.o \
- $(BUILDDIR)/squake/math.o \
- $(BUILDDIR)/squake/r_aliasa.o \
- $(BUILDDIR)/squake/r_drawa.o \
- $(BUILDDIR)/squake/r_edgea.o \
- $(BUILDDIR)/squake/r_varsa.o \
- $(BUILDDIR)/squake/surf16.o \
- $(BUILDDIR)/squake/surf8.o \
- $(BUILDDIR)/squake/worlda.o \
- $(BUILDDIR)/squake/r_aclipa.o \
- $(BUILDDIR)/squake/snd_mixa.o \
- $(BUILDDIR)/squake/sys_dosa.o
- $(BUILDDIR)/bin/squake : $(SQUAKE_OBJS)
- $(CC) $(CFLAGS) -o $@ $(SQUAKE_OBJS) $(SVGALDFLAGS) $(LDFLAGS)
- ####
- $(BUILDDIR)/squake/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
- $(DO_CC)
- $(BUILDDIR)/squake/cl_input.o : $(MOUNT_DIR)/cl_input.c
- $(DO_CC)
- $(BUILDDIR)/squake/cl_main.o : $(MOUNT_DIR)/cl_main.c
- $(DO_CC)
- $(BUILDDIR)/squake/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
- $(DO_CC)
- $(BUILDDIR)/squake/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
- $(DO_CC)
- $(BUILDDIR)/squake/chase.o : $(MOUNT_DIR)/chase.c
- $(DO_CC)
- $(BUILDDIR)/squake/cmd.o : $(MOUNT_DIR)/cmd.c
- $(DO_CC)
- $(BUILDDIR)/squake/common.o : $(MOUNT_DIR)/common.c
- $(DO_DEBUG_CC)
- $(BUILDDIR)/squake/console.o : $(MOUNT_DIR)/console.c
- $(DO_CC)
- $(BUILDDIR)/squake/crc.o : $(MOUNT_DIR)/crc.c
- $(DO_CC)
- $(BUILDDIR)/squake/cvar.o : $(MOUNT_DIR)/cvar.c
- $(DO_CC)
- $(BUILDDIR)/squake/draw.o : $(MOUNT_DIR)/draw.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_edge.o : $(MOUNT_DIR)/d_edge.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_fill.o : $(MOUNT_DIR)/d_fill.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_init.o : $(MOUNT_DIR)/d_init.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_modech.o : $(MOUNT_DIR)/d_modech.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_part.o : $(MOUNT_DIR)/d_part.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_polyse.o : $(MOUNT_DIR)/d_polyse.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_scan.o : $(MOUNT_DIR)/d_scan.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_sky.o : $(MOUNT_DIR)/d_sky.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_sprite.o : $(MOUNT_DIR)/d_sprite.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_surf.o : $(MOUNT_DIR)/d_surf.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_vars.o : $(MOUNT_DIR)/d_vars.c
- $(DO_CC)
- $(BUILDDIR)/squake/d_zpoint.o : $(MOUNT_DIR)/d_zpoint.c
- $(DO_CC)
- $(BUILDDIR)/squake/host.o : $(MOUNT_DIR)/host.c
- $(DO_CC)
- $(BUILDDIR)/squake/host_cmd.o : $(MOUNT_DIR)/host_cmd.c
- $(DO_CC)
- $(BUILDDIR)/squake/keys.o : $(MOUNT_DIR)/keys.c
- $(DO_CC)
- $(BUILDDIR)/squake/menu.o : $(MOUNT_DIR)/menu.c
- $(DO_CC)
- $(BUILDDIR)/squake/mathlib.o : $(MOUNT_DIR)/mathlib.c
- $(DO_CC)
- $(BUILDDIR)/squake/model.o : $(MOUNT_DIR)/model.c
- $(DO_CC)
- $(BUILDDIR)/squake/net_dgrm.o : $(MOUNT_DIR)/net_dgrm.c
- $(DO_CC)
- $(BUILDDIR)/squake/net_loop.o : $(MOUNT_DIR)/net_loop.c
- $(DO_CC)
- $(BUILDDIR)/squake/net_main.o : $(MOUNT_DIR)/net_main.c
- $(DO_CC)
- $(BUILDDIR)/squake/net_vcr.o : $(MOUNT_DIR)/net_vcr.c
- $(DO_CC)
- $(BUILDDIR)/squake/net_udp.o : $(MOUNT_DIR)/net_udp.c
- $(DO_CC)
- $(BUILDDIR)/squake/net_bsd.o : $(MOUNT_DIR)/net_bsd.c
- $(DO_CC)
- $(BUILDDIR)/squake/nonintel.o : $(MOUNT_DIR)/nonintel.c
- $(DO_CC)
- $(BUILDDIR)/squake/pr_cmds.o : $(MOUNT_DIR)/pr_cmds.c
- $(DO_CC)
- $(BUILDDIR)/squake/pr_edict.o : $(MOUNT_DIR)/pr_edict.c
- $(DO_CC)
- $(BUILDDIR)/squake/pr_exec.o : $(MOUNT_DIR)/pr_exec.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_aclip.o : $(MOUNT_DIR)/r_aclip.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_alias.o : $(MOUNT_DIR)/r_alias.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_bsp.o : $(MOUNT_DIR)/r_bsp.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_light.o : $(MOUNT_DIR)/r_light.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_draw.o : $(MOUNT_DIR)/r_draw.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_efrag.o : $(MOUNT_DIR)/r_efrag.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_edge.o : $(MOUNT_DIR)/r_edge.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_misc.o : $(MOUNT_DIR)/r_misc.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_main.o : $(MOUNT_DIR)/r_main.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_sky.o : $(MOUNT_DIR)/r_sky.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_sprite.o : $(MOUNT_DIR)/r_sprite.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_surf.o : $(MOUNT_DIR)/r_surf.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_part.o : $(MOUNT_DIR)/r_part.c
- $(DO_CC)
- $(BUILDDIR)/squake/r_vars.o : $(MOUNT_DIR)/r_vars.c
- $(DO_CC)
- $(BUILDDIR)/squake/screen.o : $(MOUNT_DIR)/screen.c
- $(DO_CC)
- $(BUILDDIR)/squake/sbar.o : $(MOUNT_DIR)/sbar.c
- $(DO_CC)
- $(BUILDDIR)/squake/sv_main.o : $(MOUNT_DIR)/sv_main.c
- $(DO_CC)
- $(BUILDDIR)/squake/sv_phys.o : $(MOUNT_DIR)/sv_phys.c
- $(DO_CC)
- $(BUILDDIR)/squake/sv_move.o : $(MOUNT_DIR)/sv_move.c
- $(DO_CC)
- $(BUILDDIR)/squake/sv_user.o : $(MOUNT_DIR)/sv_user.c
- $(DO_CC)
- $(BUILDDIR)/squake/zone.o : $(MOUNT_DIR)/zone.c
- $(DO_CC)
- $(BUILDDIR)/squake/view.o : $(MOUNT_DIR)/view.c
- $(DO_CC)
- $(BUILDDIR)/squake/wad.o : $(MOUNT_DIR)/wad.c
- $(DO_CC)
- $(BUILDDIR)/squake/world.o : $(MOUNT_DIR)/world.c
- $(DO_CC)
- $(BUILDDIR)/squake/cd_linux.o : $(MOUNT_DIR)/cd_linux.c
- $(DO_CC)
- $(BUILDDIR)/squake/sys_linux.o :$(MOUNT_DIR)/sys_linux.c
- $(DO_CC)
- $(BUILDDIR)/squake/vid_svgalib.o:$(MOUNT_DIR)/vid_svgalib.c
- $(DO_O_CC)
- $(BUILDDIR)/squake/snd_dma.o : $(MOUNT_DIR)/snd_dma.c
- $(DO_CC)
- $(BUILDDIR)/squake/snd_mem.o : $(MOUNT_DIR)/snd_mem.c
- $(DO_CC)
- $(BUILDDIR)/squake/snd_mix.o : $(MOUNT_DIR)/snd_mix.c
- $(DO_CC)
- $(BUILDDIR)/squake/snd_linux.o :$(MOUNT_DIR)/snd_linux.c
- $(DO_CC)
- #####
- $(BUILDDIR)/squake/d_copy.o : $(MOUNT_DIR)/d_copy.s
- $(DO_AS)
- $(BUILDDIR)/squake/d_draw.o : $(MOUNT_DIR)/d_draw.s
- $(DO_AS)
- $(BUILDDIR)/squake/d_draw16.o : $(MOUNT_DIR)/d_draw16.s
- $(DO_AS)
- $(BUILDDIR)/squake/d_parta.o : $(MOUNT_DIR)/d_parta.s
- $(DO_AS)
- $(BUILDDIR)/squake/d_polysa.o : $(MOUNT_DIR)/d_polysa.s
- $(DO_AS)
- $(BUILDDIR)/squake/d_scana.o : $(MOUNT_DIR)/d_scana.s
- $(DO_AS)
- $(BUILDDIR)/squake/d_spr8.o : $(MOUNT_DIR)/d_spr8.s
- $(DO_AS)
- $(BUILDDIR)/squake/d_varsa.o : $(MOUNT_DIR)/d_varsa.s
- $(DO_AS)
- $(BUILDDIR)/squake/math.o : $(MOUNT_DIR)/math.s
- $(DO_AS)
- $(BUILDDIR)/squake/r_aliasa.o : $(MOUNT_DIR)/r_aliasa.s
- $(DO_AS)
- $(BUILDDIR)/squake/r_drawa.o : $(MOUNT_DIR)/r_drawa.s
- $(DO_AS)
- $(BUILDDIR)/squake/r_edgea.o : $(MOUNT_DIR)/r_edgea.s
- $(DO_AS)
- $(BUILDDIR)/squake/r_varsa.o : $(MOUNT_DIR)/r_varsa.s
- $(DO_AS)
- $(BUILDDIR)/squake/surf16.o : $(MOUNT_DIR)/surf16.s
- $(DO_AS)
- $(BUILDDIR)/squake/surf8.o : $(MOUNT_DIR)/surf8.s
- $(DO_AS)
- $(BUILDDIR)/squake/worlda.o : $(MOUNT_DIR)/worlda.s
- $(DO_AS)
- $(BUILDDIR)/squake/r_aclipa.o : $(MOUNT_DIR)/r_aclipa.s
- $(DO_AS)
- $(BUILDDIR)/squake/snd_mixa.o : $(MOUNT_DIR)/snd_mixa.s
- $(DO_AS)
- $(BUILDDIR)/squake/sys_dosa.o : $(MOUNT_DIR)/sys_dosa.s
- $(DO_AS)
- #############################################################################
- # X11 Quake
- #############################################################################
- X11_OBJS = \
- $(BUILDDIR)/x11/cl_demo.o \
- $(BUILDDIR)/x11/cl_input.o \
- $(BUILDDIR)/x11/cl_main.o \
- $(BUILDDIR)/x11/cl_parse.o \
- $(BUILDDIR)/x11/cl_tent.o \
- $(BUILDDIR)/x11/chase.o \
- $(BUILDDIR)/x11/cmd.o \
- $(BUILDDIR)/x11/common.o \
- $(BUILDDIR)/x11/console.o \
- $(BUILDDIR)/x11/crc.o \
- $(BUILDDIR)/x11/cvar.o \
- $(BUILDDIR)/x11/draw.o \
- $(BUILDDIR)/x11/d_edge.o \
- $(BUILDDIR)/x11/d_fill.o \
- $(BUILDDIR)/x11/d_init.o \
- $(BUILDDIR)/x11/d_modech.o \
- $(BUILDDIR)/x11/d_part.o \
- $(BUILDDIR)/x11/d_polyse.o \
- $(BUILDDIR)/x11/d_scan.o \
- $(BUILDDIR)/x11/d_sky.o \
- $(BUILDDIR)/x11/d_sprite.o \
- $(BUILDDIR)/x11/d_surf.o \
- $(BUILDDIR)/x11/d_vars.o \
- $(BUILDDIR)/x11/d_zpoint.o \
- $(BUILDDIR)/x11/host.o \
- $(BUILDDIR)/x11/host_cmd.o \
- $(BUILDDIR)/x11/keys.o \
- $(BUILDDIR)/x11/menu.o \
- $(BUILDDIR)/x11/mathlib.o \
- $(BUILDDIR)/x11/model.o \
- $(BUILDDIR)/x11/net_dgrm.o \
- $(BUILDDIR)/x11/net_loop.o \
- $(BUILDDIR)/x11/net_main.o \
- $(BUILDDIR)/x11/net_vcr.o \
- $(BUILDDIR)/x11/net_udp.o \
- $(BUILDDIR)/x11/net_bsd.o \
- $(BUILDDIR)/x11/nonintel.o \
- $(BUILDDIR)/x11/pr_cmds.o \
- $(BUILDDIR)/x11/pr_edict.o \
- $(BUILDDIR)/x11/pr_exec.o \
- $(BUILDDIR)/x11/r_aclip.o \
- $(BUILDDIR)/x11/r_alias.o \
- $(BUILDDIR)/x11/r_bsp.o \
- $(BUILDDIR)/x11/r_light.o \
- $(BUILDDIR)/x11/r_draw.o \
- $(BUILDDIR)/x11/r_efrag.o \
- $(BUILDDIR)/x11/r_edge.o \
- $(BUILDDIR)/x11/r_misc.o \
- $(BUILDDIR)/x11/r_main.o \
- $(BUILDDIR)/x11/r_sky.o \
- $(BUILDDIR)/x11/r_sprite.o \
- $(BUILDDIR)/x11/r_surf.o \
- $(BUILDDIR)/x11/r_part.o \
- $(BUILDDIR)/x11/r_vars.o \
- $(BUILDDIR)/x11/screen.o \
- $(BUILDDIR)/x11/sbar.o \
- $(BUILDDIR)/x11/sv_main.o \
- $(BUILDDIR)/x11/sv_phys.o \
- $(BUILDDIR)/x11/sv_move.o \
- $(BUILDDIR)/x11/sv_user.o \
- $(BUILDDIR)/x11/zone.o \
- $(BUILDDIR)/x11/view.o \
- $(BUILDDIR)/x11/wad.o \
- $(BUILDDIR)/x11/world.o \
- $(BUILDDIR)/x11/cd_linux.o \
- $(BUILDDIR)/x11/sys_linux.o \
- $(BUILDDIR)/x11/vid_x.o \
- $(BUILDDIR)/x11/snd_dma.o \
- $(BUILDDIR)/x11/snd_mem.o \
- $(BUILDDIR)/x11/snd_mix.o \
- $(BUILDDIR)/x11/snd_linux.o \
- \
- $(BUILDDIR)/x11/d_draw.o \
- $(BUILDDIR)/x11/d_draw16.o \
- $(BUILDDIR)/x11/d_parta.o \
- $(BUILDDIR)/x11/d_polysa.o \
- $(BUILDDIR)/x11/d_scana.o \
- $(BUILDDIR)/x11/d_spr8.o \
- $(BUILDDIR)/x11/d_varsa.o \
- $(BUILDDIR)/x11/math.o \
- $(BUILDDIR)/x11/r_aliasa.o \
- $(BUILDDIR)/x11/r_drawa.o \
- $(BUILDDIR)/x11/r_edgea.o \
- $(BUILDDIR)/x11/r_varsa.o \
- $(BUILDDIR)/x11/surf16.o \
- $(BUILDDIR)/x11/surf8.o \
- $(BUILDDIR)/x11/worlda.o \
- $(BUILDDIR)/x11/r_aclipa.o \
- $(BUILDDIR)/x11/snd_mixa.o \
- $(BUILDDIR)/x11/sys_dosa.o
- $(BUILDDIR)/bin/quake.x11 : $(X11_OBJS)
- $(CC) $(CFLAGS) -o $@ $(X11_OBJS) $(XLDFLAGS) $(LDFLAGS)
- ####
- $(BUILDDIR)/x11/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/cl_input.o : $(MOUNT_DIR)/cl_input.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/cl_main.o : $(MOUNT_DIR)/cl_main.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/chase.o : $(MOUNT_DIR)/chase.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/cmd.o : $(MOUNT_DIR)/cmd.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/common.o : $(MOUNT_DIR)/common.c
- $(DO_X11_DEBUG_CC)
- $(BUILDDIR)/x11/console.o : $(MOUNT_DIR)/console.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/crc.o : $(MOUNT_DIR)/crc.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/cvar.o : $(MOUNT_DIR)/cvar.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/draw.o : $(MOUNT_DIR)/draw.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_edge.o : $(MOUNT_DIR)/d_edge.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_fill.o : $(MOUNT_DIR)/d_fill.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_init.o : $(MOUNT_DIR)/d_init.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_modech.o : $(MOUNT_DIR)/d_modech.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_part.o : $(MOUNT_DIR)/d_part.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_polyse.o : $(MOUNT_DIR)/d_polyse.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_scan.o : $(MOUNT_DIR)/d_scan.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_sky.o : $(MOUNT_DIR)/d_sky.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_sprite.o : $(MOUNT_DIR)/d_sprite.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_surf.o : $(MOUNT_DIR)/d_surf.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_vars.o : $(MOUNT_DIR)/d_vars.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/d_zpoint.o : $(MOUNT_DIR)/d_zpoint.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/host.o : $(MOUNT_DIR)/host.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/host_cmd.o : $(MOUNT_DIR)/host_cmd.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/keys.o : $(MOUNT_DIR)/keys.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/menu.o : $(MOUNT_DIR)/menu.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/mathlib.o : $(MOUNT_DIR)/mathlib.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/model.o : $(MOUNT_DIR)/model.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/net_dgrm.o : $(MOUNT_DIR)/net_dgrm.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/net_loop.o : $(MOUNT_DIR)/net_loop.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/net_main.o : $(MOUNT_DIR)/net_main.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/net_vcr.o : $(MOUNT_DIR)/net_vcr.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/net_udp.o : $(MOUNT_DIR)/net_udp.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/net_bsd.o : $(MOUNT_DIR)/net_bsd.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/nonintel.o : $(MOUNT_DIR)/nonintel.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/pr_cmds.o : $(MOUNT_DIR)/pr_cmds.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/pr_edict.o : $(MOUNT_DIR)/pr_edict.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/pr_exec.o : $(MOUNT_DIR)/pr_exec.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_aclip.o : $(MOUNT_DIR)/r_aclip.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_alias.o : $(MOUNT_DIR)/r_alias.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_bsp.o : $(MOUNT_DIR)/r_bsp.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_light.o : $(MOUNT_DIR)/r_light.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_draw.o : $(MOUNT_DIR)/r_draw.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_efrag.o : $(MOUNT_DIR)/r_efrag.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_edge.o : $(MOUNT_DIR)/r_edge.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_misc.o : $(MOUNT_DIR)/r_misc.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_main.o : $(MOUNT_DIR)/r_main.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_sky.o : $(MOUNT_DIR)/r_sky.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_sprite.o : $(MOUNT_DIR)/r_sprite.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_surf.o : $(MOUNT_DIR)/r_surf.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_part.o : $(MOUNT_DIR)/r_part.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/r_vars.o : $(MOUNT_DIR)/r_vars.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/screen.o : $(MOUNT_DIR)/screen.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/sbar.o : $(MOUNT_DIR)/sbar.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/sv_main.o : $(MOUNT_DIR)/sv_main.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/sv_phys.o : $(MOUNT_DIR)/sv_phys.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/sv_move.o : $(MOUNT_DIR)/sv_move.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/sv_user.o : $(MOUNT_DIR)/sv_user.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/zone.o : $(MOUNT_DIR)/zone.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/view.o : $(MOUNT_DIR)/view.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/wad.o : $(MOUNT_DIR)/wad.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/world.o : $(MOUNT_DIR)/world.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/cd_linux.o : $(MOUNT_DIR)/cd_linux.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/sys_linux.o :$(MOUNT_DIR)/sys_linux.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/vid_x.o: $(MOUNT_DIR)/vid_x.c
- $(DO_O_CC)
- $(BUILDDIR)/x11/snd_dma.o : $(MOUNT_DIR)/snd_dma.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/snd_mem.o : $(MOUNT_DIR)/snd_mem.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/snd_mix.o : $(MOUNT_DIR)/snd_mix.c
- $(DO_X11_CC)
- $(BUILDDIR)/x11/snd_linux.o :$(MOUNT_DIR)/snd_linux.c
- $(DO_X11_CC)
- #####
- $(BUILDDIR)/x11/d_copy.o : $(MOUNT_DIR)/d_copy.s
- $(DO_AS)
- $(BUILDDIR)/x11/d_draw.o : $(MOUNT_DIR)/d_draw.s
- $(DO_AS)
- $(BUILDDIR)/x11/d_draw16.o : $(MOUNT_DIR)/d_draw16.s
- $(DO_AS)
- $(BUILDDIR)/x11/d_parta.o : $(MOUNT_DIR)/d_parta.s
- $(DO_AS)
- $(BUILDDIR)/x11/d_polysa.o : $(MOUNT_DIR)/d_polysa.s
- $(DO_AS)
- $(BUILDDIR)/x11/d_scana.o : $(MOUNT_DIR)/d_scana.s
- $(DO_AS)
- $(BUILDDIR)/x11/d_spr8.o : $(MOUNT_DIR)/d_spr8.s
- $(DO_AS)
- $(BUILDDIR)/x11/d_varsa.o : $(MOUNT_DIR)/d_varsa.s
- $(DO_AS)
- $(BUILDDIR)/x11/math.o : $(MOUNT_DIR)/math.s
- $(DO_AS)
- $(BUILDDIR)/x11/r_aliasa.o : $(MOUNT_DIR)/r_aliasa.s
- $(DO_AS)
- $(BUILDDIR)/x11/r_drawa.o : $(MOUNT_DIR)/r_drawa.s
- $(DO_AS)
- $(BUILDDIR)/x11/r_edgea.o : $(MOUNT_DIR)/r_edgea.s
- $(DO_AS)
- $(BUILDDIR)/x11/r_varsa.o : $(MOUNT_DIR)/r_varsa.s
- $(DO_AS)
- $(BUILDDIR)/x11/surf16.o : $(MOUNT_DIR)/surf16.s
- $(DO_AS)
- $(BUILDDIR)/x11/surf8.o : $(MOUNT_DIR)/surf8.s
- $(DO_AS)
- $(BUILDDIR)/x11/worlda.o : $(MOUNT_DIR)/worlda.s
- $(DO_AS)
- $(BUILDDIR)/x11/r_aclipa.o : $(MOUNT_DIR)/r_aclipa.s
- $(DO_AS)
- $(BUILDDIR)/x11/snd_mixa.o : $(MOUNT_DIR)/snd_mixa.s
- $(DO_AS)
- $(BUILDDIR)/x11/sys_dosa.o : $(MOUNT_DIR)/sys_dosa.s
- $(DO_AS)
- #############################################################################
- # GLQuake
- #############################################################################
- GLQUAKE_OBJS= \
- $(BUILDDIR)/glquake/cl_demo.o \
- $(BUILDDIR)/glquake/cl_input.o \
- $(BUILDDIR)/glquake/cl_main.o \
- $(BUILDDIR)/glquake/cl_parse.o \
- $(BUILDDIR)/glquake/cl_tent.o \
- $(BUILDDIR)/glquake/chase.o \
- $(BUILDDIR)/glquake/cmd.o \
- $(BUILDDIR)/glquake/common.o \
- $(BUILDDIR)/glquake/console.o \
- $(BUILDDIR)/glquake/crc.o \
- $(BUILDDIR)/glquake/cvar.o \
- \
- $(BUILDDIR)/glquake/gl_draw.o \
- $(BUILDDIR)/glquake/gl_mesh.o \
- $(BUILDDIR)/glquake/gl_model.o \
- $(BUILDDIR)/glquake/gl_refrag.o \
- $(BUILDDIR)/glquake/gl_rlight.o \
- $(BUILDDIR)/glquake/gl_rmain.o \
- $(BUILDDIR)/glquake/gl_rmisc.o \
- $(BUILDDIR)/glquake/gl_rsurf.o \
- $(BUILDDIR)/glquake/gl_screen.o \
- $(BUILDDIR)/glquake/gl_test.o \
- $(BUILDDIR)/glquake/gl_warp.o \
- \
- $(BUILDDIR)/glquake/host.o \
- $(BUILDDIR)/glquake/host_cmd.o \
- $(BUILDDIR)/glquake/keys.o \
- $(BUILDDIR)/glquake/menu.o \
- $(BUILDDIR)/glquake/mathlib.o \
- $(BUILDDIR)/glquake/net_dgrm.o \
- $(BUILDDIR)/glquake/net_loop.o \
- $(BUILDDIR)/glquake/net_main.o \
- $(BUILDDIR)/glquake/net_vcr.o \
- $(BUILDDIR)/glquake/net_udp.o \
- $(BUILDDIR)/glquake/net_bsd.o \
- $(BUILDDIR)/glquake/pr_cmds.o \
- $(BUILDDIR)/glquake/pr_edict.o \
- $(BUILDDIR)/glquake/pr_exec.o \
- $(BUILDDIR)/glquake/r_part.o \
- $(BUILDDIR)/glquake/sbar.o \
- $(BUILDDIR)/glquake/sv_main.o \
- $(BUILDDIR)/glquake/sv_phys.o \
- $(BUILDDIR)/glquake/sv_move.o \
- $(BUILDDIR)/glquake/sv_user.o \
- $(BUILDDIR)/glquake/zone.o \
- $(BUILDDIR)/glquake/view.o \
- $(BUILDDIR)/glquake/wad.o \
- $(BUILDDIR)/glquake/world.o \
- $(BUILDDIR)/glquake/cd_linux.o \
- $(BUILDDIR)/glquake/sys_linux.o \
- $(BUILDDIR)/glquake/snd_dma.o \
- $(BUILDDIR)/glquake/snd_mem.o \
- $(BUILDDIR)/glquake/snd_mix.o \
- $(BUILDDIR)/glquake/snd_linux.o \
- \
- $(BUILDDIR)/glquake/math.o \
- $(BUILDDIR)/glquake/worlda.o \
- $(BUILDDIR)/glquake/snd_mixa.o \
- $(BUILDDIR)/glquake/sys_dosa.o
- GLSVGA_OBJS=$(BUILDDIR)/glquake/gl_vidlinux.o
- GLX_OBJS=$(BUILDDIR)/glquake/gl_vidlinuxglx.o
- $(BUILDDIR)/bin/glquake : $(GLQUAKE_OBJS) $(GLSVGA_OBJS)
- $(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(GLSVGA_OBJS) $(MESAGLLDFLAGS) $(SVGALDFLAGS) $(LDFLAGS)
- $(BUILDDIR)/bin/glquake.glx : $(GLQUAKE_OBJS) $(GLX_OBJS)
- $(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(GLX_OBJS) $(GLLDFLAGS) $(LDFLAGS)
- $(BUILDDIR)/bin/glquake.3dfxgl : $(GLQUAKE_OBJS) $(GLSVGA_OBJS)
- $(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(GLSVGA_OBJS) $(TDFXGLLDFLAGS) $(SVGALDFLAGS) $(LDFLAGS)
- $(BUILDDIR)/glquake/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/cl_input.o : $(MOUNT_DIR)/cl_input.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/cl_main.o : $(MOUNT_DIR)/cl_main.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/chase.o : $(MOUNT_DIR)/chase.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/cmd.o : $(MOUNT_DIR)/cmd.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/common.o : $(MOUNT_DIR)/common.c
- $(DO_GL_DEBUG_CC)
- $(BUILDDIR)/glquake/console.o : $(MOUNT_DIR)/console.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/crc.o : $(MOUNT_DIR)/crc.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/cvar.o : $(MOUNT_DIR)/cvar.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_draw.o : $(MOUNT_DIR)/gl_draw.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_mesh.o : $(MOUNT_DIR)/gl_mesh.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_model.o : $(MOUNT_DIR)/gl_model.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_refrag.o : $(MOUNT_DIR)/gl_refrag.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_rlight.o : $(MOUNT_DIR)/gl_rlight.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_rmain.o : $(MOUNT_DIR)/gl_rmain.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_rmisc.o : $(MOUNT_DIR)/gl_rmisc.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_rsurf.o : $(MOUNT_DIR)/gl_rsurf.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_screen.o : $(MOUNT_DIR)/gl_screen.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_test.o : $(MOUNT_DIR)/gl_test.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_vidlinux.o : $(MOUNT_DIR)/gl_vidlinux.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_vidlinuxglx.o : $(MOUNT_DIR)/gl_vidlinuxglx.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/gl_warp.o : $(MOUNT_DIR)/gl_warp.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/host.o : $(MOUNT_DIR)/host.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/host_cmd.o : $(MOUNT_DIR)/host_cmd.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/keys.o : $(MOUNT_DIR)/keys.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/menu.o : $(MOUNT_DIR)/menu.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/mathlib.o : $(MOUNT_DIR)/mathlib.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/net_dgrm.o : $(MOUNT_DIR)/net_dgrm.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/net_loop.o : $(MOUNT_DIR)/net_loop.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/net_main.o : $(MOUNT_DIR)/net_main.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/net_vcr.o : $(MOUNT_DIR)/net_vcr.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/net_udp.o : $(MOUNT_DIR)/net_udp.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/net_bsd.o : $(MOUNT_DIR)/net_bsd.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/pr_cmds.o : $(MOUNT_DIR)/pr_cmds.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/pr_edict.o : $(MOUNT_DIR)/pr_edict.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/pr_exec.o : $(MOUNT_DIR)/pr_exec.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/r_part.o : $(MOUNT_DIR)/r_part.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/sbar.o : $(MOUNT_DIR)/sbar.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/sv_main.o : $(MOUNT_DIR)/sv_main.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/sv_phys.o : $(MOUNT_DIR)/sv_phys.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/sv_move.o : $(MOUNT_DIR)/sv_move.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/sv_user.o : $(MOUNT_DIR)/sv_user.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/zone.o : $(MOUNT_DIR)/zone.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/view.o : $(MOUNT_DIR)/view.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/wad.o : $(MOUNT_DIR)/wad.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/world.o : $(MOUNT_DIR)/world.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/cd_linux.o : $(MOUNT_DIR)/cd_linux.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/sys_linux.o : $(MOUNT_DIR)/sys_linux.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/snd_dma.o : $(MOUNT_DIR)/snd_dma.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/snd_mem.o : $(MOUNT_DIR)/snd_mem.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/snd_mix.o : $(MOUNT_DIR)/snd_mix.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/snd_linux.o : $(MOUNT_DIR)/snd_linux.c
- $(DO_GL_CC)
- $(BUILDDIR)/glquake/math.o : $(MOUNT_DIR)/math.s
- $(DO_GL_AS)
- $(BUILDDIR)/glquake/worlda.o : $(MOUNT_DIR)/worlda.s
- $(DO_GL_AS)
- $(BUILDDIR)/glquake/snd_mixa.o : $(MOUNT_DIR)/snd_mixa.s
- $(DO_GL_AS)
- $(BUILDDIR)/glquake/sys_dosa.o : $(MOUNT_DIR)/sys_dosa.s
- $(DO_GL_AS)
- #############################################################################
- # RPM
- #############################################################################
- # Make RPMs. You need to be root to make this work
- RPMROOT=/usr/src/redhat
- RPM = rpm
- RPMFLAGS = -bb
- INSTALLDIR = /usr/local/games/quake
- TMPDIR = /var/tmp
- RPMDIR = $(TMPDIR)/quake-$(VERSION)
- BASERPMDIR = $(TMPDIR)/quake-$(BASEVERSION)
- rpm: rpm-quake rpm-quake-data rpm-hipnotic rpm-rogue
- rpm-quake: quake.spec \
- $(BUILD_RELEASE_DIR)/bin/squake \
- $(BUILD_RELEASE_DIR)/bin/quake.x11 \
- $(BUILD_RELEASE_DIR)/bin/glquake \
- $(BUILD_RELEASE_DIR)/bin/glquake.glx \
- $(BUILD_RELEASE_DIR)/bin/glquake.3dfxgl
- touch $(RPMROOT)/SOURCES/quake-$(VERSION).tar.gz
- if [ ! -d RPMS ];then mkdir RPMS;fi
- cp $(MOUNT_DIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
- # basic binaries rpm
- -mkdirhier $(RPMDIR)/$(INSTALLDIR)
- cp $(MOUNT_DIR)/docs/README $(RPMDIR)/$(INSTALLDIR)/.
- cp $(BUILD_RELEASE_DIR)/bin/squake $(RPMDIR)/$(INSTALLDIR)/squake
- strip $(RPMDIR)/$(INSTALLDIR)/squake
- cp $(BUILD_RELEASE_DIR)/bin/quake.x11 $(RPMDIR)/$(INSTALLDIR)/quake.x11
- strip $(RPMDIR)/$(INSTALLDIR)/quake.x11
- cp $(BUILD_RELEASE_DIR)/bin/glquake $(RPMDIR)/$(INSTALLDIR)/glquake
- strip $(RPMDIR)/$(INSTALLDIR)/glquake
- cp $(BUILD_RELEASE_DIR)/bin/glquake.glx $(RPMDIR)/$(INSTALLDIR)/glquake.glx
- strip $(RPMDIR)/$(INSTALLDIR)/glquake.glx
- cp $(BUILD_RELEASE_DIR)/bin/glquake.3dfxgl $(RPMDIR)/$(INSTALLDIR)/glquake.3dfxgl
- strip $(RPMDIR)/$(INSTALLDIR)/glquake.3dfxgl
- -mkdirhier $(RPMDIR)/usr/lib
- cp $(TDFXGL_DIR)/release$(ARCH)$(GLIBC)/lib3dfxgl.so $(RPMDIR)/usr/lib/lib3dfxgl.so
- cp $(MESA_DIR)/lib/libMesaGL.so.2.6 $(RPMDIR)/usr/lib/libMesaGL.so.2.6
- cp quake.spec $(RPMROOT)/SPECS/.
- cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake.spec
- rm -rf $(RPMDIR)
- rm -f $(RPMROOT)/SOURCES/quake-$(VERSION).tar.gz
- mv $(RPMROOT)/RPMS/$(ARCH)/quake-$(VERSION)-$(RPM_RELEASE).$(ARCH).rpm RPMS/.
- QUAKEDATADIR=$(TMPDIR)/quake-data-$(BASEVERSION)
- rpm-quake-data: quake-data.spec
- # data rpm
- touch $(RPMROOT)/SOURCES/quake-$(BASEVERSION)-data.tar.gz
- -mkdirhier $(QUAKEDATADIR)/$(INSTALLDIR)/id1
- cp $(MASTER_DIR)/id1/pak0.pak $(QUAKEDATADIR)/$(INSTALLDIR)/id1/.
- cp $(MASTER_DIR)/id1/pak1.pak $(QUAKEDATADIR)/$(INSTALLDIR)/id1/.
- cp $(MOUNT_DIR)/docs/README $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/comexp.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/help.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/licinfo.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/manual.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/readme.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/rlicnse.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/slicnse.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp $(MOUNT_DIR)/data/techinfo.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
- cp quake-data.spec $(RPMROOT)/SPECS/.
- cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake-data.spec
- rm -rf $(QUAKEDATADIR)
- rm -f $(RPMROOT)/SOURCES/quake-$(BASEVERSION)-data.tar.gz
- mv $(RPMROOT)/RPMS/$(NOARCH)/quake-data-$(BASEVERSION)-$(RPM_RELEASE).$(NOARCH).rpm RPMS/.
- RPMHIPNOTICDIR=$(TMPDIR)/quake-hipnotic-$(BASEVERSION)
- rpm-hipnotic: quake-hipnotic.spec
- touch $(RPMROOT)/SOURCES/quake-hipnotic-$(BASEVERSION).tar.gz
- if [ ! -d RPMS ];then mkdir RPMS;fi
- cp $(MOUNT_DIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
- -mkdirhier $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs
- cp $(MASTER_DIR)/hipnotic/pak0.pak $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/.
- cp $(MASTER_DIR)/hipnotic/config.cfg $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/.
- cp $(MASTER_DIR)/hipnotic/docs/manual.doc $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
- cp $(MASTER_DIR)/hipnotic/docs/manual.htm $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
- cp $(MASTER_DIR)/hipnotic/docs/manual.txt $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
- cp $(MASTER_DIR)/hipnotic/docs/readme.doc $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
- cp $(MASTER_DIR)/hipnotic/docs/readme.htm $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
- cp $(MASTER_DIR)/hipnotic/docs/readme.txt $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
- cp quake-hipnotic.spec $(RPMROOT)/SPECS/.
- cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake-hipnotic.spec
- rm -rf $(RPMHIPNOTICDIR)
- rm -f $(RPMROOT)/SOURCES/quake-hipnotic-$(BASEVERSION).tar.gz
- mv $(RPMROOT)/RPMS/$(NOARCH)/quake-hipnotic-$(BASEVERSION)-$(RPM_RELEASE).$(NOARCH).rpm RPMS/.
- RPMROGUEDIR=$(TMPDIR)/quake-rogue-$(BASEVERSION)
- rpm-rogue: quake-rogue.spec
- touch $(RPMROOT)/SOURCES/quake-rogue-$(BASEVERSION).tar.gz
- if [ ! -d RPMS ];then mkdir RPMS;fi
- cp $(MOUNT_DIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
- -mkdirhier $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs
- cp $(MASTER_DIR)/rogue/pak0.pak $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/.
- cp $(MASTER_DIR)/rogue/docs/manual.doc $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/manual.htm $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/manual.txt $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/readme.doc $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/readme.htm $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/readme.txt $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/ctf.doc $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/ctf.htm $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp $(MASTER_DIR)/rogue/docs/ctf.txt $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
- cp quake-rogue.spec $(RPMROOT)/SPECS/.
- cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake-rogue.spec
- rm -rf $(RPMROGUEDIR)
- rm -f $(RPMROOT)/SOURCES/quake-rogue-$(BASEVERSION).tar.gz
- mv $(RPMROOT)/RPMS/$(NOARCH)/quake-rogue-$(BASEVERSION)-$(RPM_RELEASE).$(NOARCH).rpm RPMS/.
- quake.spec : $(MOUNT_DIR)/quake.spec.sh
- sh $< $(VERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
- quake-data.spec : $(MOUNT_DIR)/quake-data.spec.sh
- sh $< $(BASEVERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
- quake-hipnotic.spec : $(MOUNT_DIR)/quake-hipnotic.spec.sh
- sh $< $(BASEVERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
- quake-rogue.spec : $(MOUNT_DIR)/quake-rogue.spec.sh
- sh $< $(BASEVERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
- #############################################################################
- # MISC
- #############################################################################
- clean: clean-debug clean-release
- rm -f squake.spec glquake.spec quake.x11.spec
- clean-debug:
- $(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
- clean-release:
- $(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)"
- clean2:
- -rm -f $(SQUAKE_OBJS) $(X11_OBJS) $(GLQUAKE_OBJS) $(GLSVGA_OBJS) \
- $(GLX_OBJS)
|