MAKEFILE 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. EXES = qbsp light vis bspinfo entmap visx
  2. NTEXES = qbsp.exe light.exe vis.exe bspinfo.exe entmap.exe visx.exe
  3. #==============================================================================
  4. EXT= .o
  5. all: $(EXES)
  6. clean:
  7. rm *.o *.obj $(EXES) $(NTEXES)
  8. next:
  9. make "CFLAGS = -g -Wall -I.."
  10. nextinstall:
  11. make "CFLAGS = -O4 -g -Wall -I.. -arch i386 -arch hppa"
  12. cp $(EXES) /LocalApps
  13. alpha:
  14. make "CFLAGS = -g -I.." "LDFLAGS = -lm"
  15. alphainstall:
  16. make "CFLAGS = -O4 -I.." "LDFLAGS = -lm"
  17. cp $(EXES) /LocalApps
  18. nt:
  19. nmake /nologo "CFLAGS = -nologo -Zi -DWIN32 -I.." "LDFLAGS = " "EXT = .obj"
  20. ntinstall:
  21. nmake /nologo "CFLAGS = -nologo -Ox -G5 -DWIN32 -I.." "LDFLAGS = " "EXT = .obj"
  22. cp $(NTEXES) f:\nt\id
  23. #==============================================================================
  24. QBSPFILES = region$(EXT) map$(EXT) brush$(EXT) cmdlib$(EXT) csg4$(EXT) surfaces$(EXT) mathlib$(EXT)\
  25. merge$(EXT) outside$(EXT) portals$(EXT) qbsp$(EXT) solidbsp$(EXT) tjunc$(EXT)\
  26. writebsp$(EXT) bspfile$(EXT) nodraw$(EXT)
  27. qbsp : $(QBSPFILES)
  28. $(CC) $(CFLAGS) -o qbsp $(QBSPFILES)
  29. light : threads$(EXT) bspfile$(EXT) cmdlib$(EXT) light$(EXT) ltface$(EXT) mathlib$(EXT) trace$(EXT) entities$(EXT)
  30. $(CC) $(CFLAGS) -o light threads$(EXT) bspfile$(EXT) cmdlib$(EXT) light$(EXT) ltface$(EXT) mathlib$(EXT) trace$(EXT) entities$(EXT)
  31. vis : vis$(EXT) flow$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT)
  32. $(CC) $(CFLAGS) -o vis vis$(EXT) flow$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT)
  33. visx : visx$(EXT) flowx$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT)
  34. $(CC) $(CFLAGS) -o visx visx$(EXT) flowx$(EXT) cmdlib$(EXT) mathlib$(EXT) bspfile$(EXT) soundpvs$(EXT)
  35. bspinfo : bspinfo$(EXT) bspfile$(EXT) cmdlib$(EXT)
  36. $(CC) $(CFLAGS) -o bspinfo bspinfo$(EXT) bspfile$(EXT) cmdlib$(EXT)
  37. entmap : entmap$(EXT) cmdlib$(EXT)
  38. $(CC) $(CFLAGS) -o entmap entmap$(EXT) cmdlib$(EXT)
  39. cmdlib$(EXT) : ../cmdlib.c
  40. $(CC) $(CFLAGS) -c -o cmdlib$(EXT) ../cmdlib.c
  41. mathlib$(EXT) : ../mathlib.c
  42. $(CC) $(CFLAGS) -c -o mathlib$(EXT) ../mathlib.c