linux-i386.mak 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #
  2. # Makefile for the BSPC tool for the Gladiator Bot
  3. # Intended for gcc/Linux
  4. #
  5. ARCH=i386
  6. CC=gcc
  7. BASE_CFLAGS=-Dstricmp=strcasecmp
  8. #use these cflags to optimize it
  9. CFLAGS=$(BASE_CFLAGS) -m486 -O6 -ffast-math -funroll-loops \
  10. -fomit-frame-pointer -fexpensive-optimizations -malign-loops=2 \
  11. -malign-jumps=2 -malign-functions=2 -DLINUX -DBSPC
  12. #use these when debugging
  13. #CFLAGS=$(BASE_CFLAGS) -g
  14. LDFLAGS=-ldl -lm -lpthread
  15. DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
  16. #############################################################################
  17. # SETUP AND BUILD BSPC
  18. #############################################################################
  19. .c.o:
  20. $(DO_CC)
  21. GAME_OBJS = \
  22. _files.o\
  23. aas_areamerging.o\
  24. aas_cfg.o\
  25. aas_create.o\
  26. aas_edgemelting.o\
  27. aas_facemerging.o\
  28. aas_file.o\
  29. aas_gsubdiv.o\
  30. aas_map.o\
  31. aas_prunenodes.o\
  32. aas_store.o\
  33. be_aas_bspc.o\
  34. ../botlib/be_aas_bspq3.o\
  35. ../botlib/be_aas_cluster.o\
  36. ../botlib/be_aas_move.o\
  37. ../botlib/be_aas_optimize.o\
  38. ../botlib/be_aas_reach.o\
  39. ../botlib/be_aas_sample.o\
  40. brushbsp.o\
  41. bspc.o\
  42. ../qcommon/cm_load.o\
  43. ../qcommon/cm_patch.o\
  44. ../qcommon/cm_test.o\
  45. ../qcommon/cm_trace.o\
  46. csg.o\
  47. glfile.o\
  48. l_bsp_ent.o\
  49. l_bsp_hl.o\
  50. l_bsp_q1.o\
  51. l_bsp_q2.o\
  52. l_bsp_q3.o\
  53. l_bsp_sin.o\
  54. l_cmd.o\
  55. ../botlib/l_libvar.o\
  56. l_log.o\
  57. l_math.o\
  58. l_mem.o\
  59. l_poly.o\
  60. ../botlib/l_precomp.o\
  61. l_qfiles.o\
  62. ../botlib/l_script.o\
  63. ../botlib/l_struct.o\
  64. l_threads.o\
  65. l_utils.o\
  66. leakfile.o\
  67. map.o\
  68. map_hl.o\
  69. map_q1.o\
  70. map_q2.o\
  71. map_q3.o\
  72. map_sin.o\
  73. ../qcommon/md4.o\
  74. nodraw.o\
  75. portals.o\
  76. tetrahedron.o\
  77. textures.o\
  78. tree.o\
  79. ../qcommon/unzip.o
  80. bspc$(ARCH) : $(GAME_OBJS)
  81. $(CC) $(CFLAGS) -o $@ $(GAME_OBJS) $(LDFLAGS)
  82. #############################################################################
  83. # MISC
  84. #############################################################################
  85. clean:
  86. -rm -f $(GAME_OBJS)
  87. depend:
  88. gcc -MM $(GAME_OBJS:.o=.c)
  89. install:
  90. cp bspci386 ..
  91. #
  92. # From "make depend"
  93. #