65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
|
|
exes = qbsp light vis bspinfo entmap visx
|
|
ntexes = qbsp.exe light.exe vis.exe bspinfo.exe entmap.exe visx.exe
|
|
|
|
#==============================================================================
|
|
|
|
ext= .o
|
|
|
|
all: $(exes)
|
|
|
|
clean:
|
|
rm *.o *.obj $(exes) $(ntexes)
|
|
|
|
next:
|
|
make "cflags = -g -wall -i.."
|
|
|
|
nextinstall:
|
|
make "cflags = -o4 -g -wall -i.. -arch i386 -arch hppa"
|
|
cp $(exes) /localapps
|
|
|
|
alpha:
|
|
make "cflags = -g -i.." "ldflags = -lm"
|
|
|
|
alphainstall:
|
|
make "cflags = -o4 -i.." "ldflags = -lm"
|
|
cp $(exes) /localapps
|
|
|
|
nt:
|
|
nmake /nologo "cflags = -nologo -zi -dwin32 -i.." "ldflags = " "ext = .obj"
|
|
|
|
ntinstall:
|
|
nmake /nologo "cflags = -nologo -ox -g5 -dwin32 -i.." "ldflags = " "ext = .obj"
|
|
cp $(ntexes) f:\nt\id
|
|
|
|
#==============================================================================
|
|
|
|
|
|
qbspfiles = region$(ext) map$(ext) brush$(ext) cmdlib$(ext) csg4$(ext) surfaces$(ext) mathlib$(ext)\
|
|
merge$(ext) outside$(ext) portals$(ext) qbsp$(ext) solidbsp$(ext) tjunc$(ext)\
|
|
writebsp$(ext) bspfile$(ext) nodraw$(ext)
|
|
qbsp : $(qbspfiles)
|
|
$(cc) $(cflags) -o qbsp $(qbspfiles)
|
|
|
|
light : threads$(ext) bspfile$(ext) cmdlib$(ext) light$(ext) ltface$(ext) mathlib$(ext) trace$(ext) entities$(ext)
|
|
$(cc) $(cflags) -o light threads$(ext) bspfile$(ext) cmdlib$(ext) light$(ext) ltface$(ext) mathlib$(ext) trace$(ext) entities$(ext)
|
|
|
|
vis : vis$(ext) flow$(ext) cmdlib$(ext) mathlib$(ext) bspfile$(ext) soundpvs$(ext)
|
|
$(cc) $(cflags) -o vis vis$(ext) flow$(ext) cmdlib$(ext) mathlib$(ext) bspfile$(ext) soundpvs$(ext)
|
|
|
|
visx : visx$(ext) flowx$(ext) cmdlib$(ext) mathlib$(ext) bspfile$(ext) soundpvs$(ext)
|
|
$(cc) $(cflags) -o visx visx$(ext) flowx$(ext) cmdlib$(ext) mathlib$(ext) bspfile$(ext) soundpvs$(ext)
|
|
|
|
bspinfo : bspinfo$(ext) bspfile$(ext) cmdlib$(ext)
|
|
$(cc) $(cflags) -o bspinfo bspinfo$(ext) bspfile$(ext) cmdlib$(ext)
|
|
|
|
entmap : entmap$(ext) cmdlib$(ext)
|
|
$(cc) $(cflags) -o entmap entmap$(ext) cmdlib$(ext)
|
|
|
|
|
|
cmdlib$(ext) : ../cmdlib.c
|
|
$(cc) $(cflags) -c -o cmdlib$(ext) ../cmdlib.c
|
|
mathlib$(ext) : ../mathlib.c
|
|
$(cc) $(cflags) -c -o mathlib$(ext) ../mathlib.c
|
|
|
|
|