makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. CFLAGS = -c
  2. LDFLAGS =
  3. ODIR = baddir
  4. EXEBASE = qdata
  5. EXE = $(ODIR)/qdata
  6. all: $(EXE)
  7. _next:
  8. make "CFLAGS = -c -g -I../common" "ODIR = next"
  9. _irix:
  10. make "CFLAGS = -c -Ofast=ip32_10k -I../common -Xcpluscomm" "LDFLAGS = -Ofast=ip32_10k" "ODIR = irix"
  11. _irixdebug:
  12. make "CFLAGS = -c -O2 -g -I../common -Xcpluscomm" "LDFLAGS = -g" "ODIR = irix"
  13. _irixinst:
  14. make "CFLAGS = -c -Ofast=ip32_10k -I../common -Xcpluscomm" "LDFLAGS = -Ofast=ip32_10k" "ODIR = irix"
  15. cp irix/$(EXEBASE) /limbo/quake/bin_irix
  16. _irixclean:
  17. rm -f irix/*.o irix/$(EXEBASE)
  18. _osf:
  19. make "CFLAGS = -c -O4 -I../common -threads" "LDFLAGS = -threads" "ODIR = osf"
  20. clean:
  21. rm -f next/*.o next/$(EXEBASE)
  22. rm -f osf/*.o osf/$(EXEBASE)
  23. rm -f irix/*.o irix/$(EXEBASE)
  24. install:
  25. cp next/$(EXEBASE) /limbo/quake2/bin_next
  26. cp osf/$(EXEBASE) /limbo/quake2/bin_osf
  27. cp irix/$(EXEBASE) /limbo/quake2/bin_irix
  28. FILES = $(ODIR)/qdata.o $(ODIR)/models.o $(ODIR)/sprites.o $(ODIR)/images.o $(ODIR)/cmdlib.o $(ODIR)/scriplib.o $(ODIR)/lbmlib.o $(ODIR)/mathlib.o $(ODIR)/l3dslib.o $(ODIR)/trilib.o $(ODIR)/threads.o $(ODIR)/tables.o
  29. $(EXE) : $(FILES)
  30. cc -o $(EXE) $(LDFLAGS) $(FILES) -lm
  31. $(ODIR)/qdata.o : qdata.c
  32. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  33. cc $(CFLAGS) -o $@ /tmp/temp.i
  34. $(ODIR)/models.o : models.c
  35. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  36. cc $(CFLAGS) -o $@ /tmp/temp.i
  37. $(ODIR)/sprites.o : sprites.c
  38. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  39. cc $(CFLAGS) -o $@ /tmp/temp.i
  40. $(ODIR)/images.o : images.c
  41. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  42. cc $(CFLAGS) -o $@ /tmp/temp.i
  43. $(ODIR)/tables.o : tables.c
  44. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  45. cc $(CFLAGS) -o $@ /tmp/temp.i
  46. $(ODIR)/cmdlib.o : ../common/cmdlib.c
  47. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  48. cc $(CFLAGS) -o $@ /tmp/temp.i
  49. $(ODIR)/scriplib.o : ../common/scriplib.c
  50. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  51. cc $(CFLAGS) -o $@ /tmp/temp.i
  52. $(ODIR)/lbmlib.o : ../common/lbmlib.c
  53. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  54. cc $(CFLAGS) -o $@ /tmp/temp.i
  55. $(ODIR)/mathlib.o : ../common/mathlib.c
  56. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  57. cc $(CFLAGS) -o $@ /tmp/temp.i
  58. $(ODIR)/trilib.o : ../common/trilib.c
  59. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  60. cc $(CFLAGS) -o $@ /tmp/temp.i
  61. $(ODIR)/l3dslib.o : ../common/l3dslib.c
  62. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  63. cc $(CFLAGS) -o $@ /tmp/temp.i
  64. $(ODIR)/threads.o : ../common/threads.c
  65. cc $(CFLAGS) -E $? | tr -d '\015' > /tmp/temp.i
  66. cc $(CFLAGS) -o $@ /tmp/temp.i