SUCK IT GARRY!!!!!111!!!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
3.4KB

  1. #
  2. # DMC game library Makefile for x86 Linux
  3. #
  4. # May 2001 by Leon Hartwig (hartwig@valvesoftware.com)
  5. #
  6. OS:=$(shell uname)
  7. DMCDLL_SRC_DIR=$(SOURCE_DIR)/dmc/dlls
  8. PM_SRC_DIR=$(SOURCE_DIR)/dmc/pm_shared
  9. DMCDLL_OBJ_DIR=$(BUILD_OBJ_DIR)/dmcdll
  10. PM_OBJ_DIR=$(DMCDLL_OBJ_DIR)/pm_shared
  11. GAME_SHARED_OBJ_DIR=$(DMCDLL_OBJ_DIR)/game_shared
  12. #full optimization
  13. CFLAGS=$(BASE_CFLAGS) $(ARCH_CFLAGS)
  14. DMCDLL_INCLUDEDIRS=-I$(ENGINE_SRC_DIR) -I$(COMMON_SRC_DIR) -I$(PM_SRC_DIR) -I$(GAME_SHARED_SRC_DIR) -I$(PUBLIC_SRC_DIR)
  15. PM_INCLUDEDIRS=-I$(COMMON_SRC_DIR) -I$(PUBLIC_SRC_DIR)
  16. GAME_SHARED_INCLUDEDIRS=-I$(DMCDLL_SRC_DIR) -I$(ENGINE_SRC_DIR) -I$(COMMON_SRC_DIR) -I$(PUBLIC_SRC_DIR)
  17. LDFLAGS=
  18. DO_DMCDLL_CC=$(CC) $(DMCDLL_INCLUDEDIRS) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
  19. DO_PM_CC=$(CC) $(PM_INCLUDEDIRS) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<
  20. DO_GAME_SHARED_CC=$(CC) $(GAME_SHARED_INCLUDEDIRS) $(CFLAGS) $(SHLIBFLAGS) -o $@ -c $<
  21. #############################################################################
  22. DMCDLL_OBJS = \
  23. $(DMCDLL_OBJ_DIR)/animating.o \
  24. $(DMCDLL_OBJ_DIR)/animation.o \
  25. $(DMCDLL_OBJ_DIR)/bmodels.o \
  26. $(DMCDLL_OBJ_DIR)/buttons.o \
  27. $(DMCDLL_OBJ_DIR)/cbase.o \
  28. $(DMCDLL_OBJ_DIR)/client.o \
  29. $(DMCDLL_OBJ_DIR)/combat.o \
  30. $(DMCDLL_OBJ_DIR)/doors.o \
  31. $(DMCDLL_OBJ_DIR)/effects.o \
  32. $(DMCDLL_OBJ_DIR)/explode.o \
  33. $(DMCDLL_OBJ_DIR)/func_break.o \
  34. $(DMCDLL_OBJ_DIR)/func_tank.o \
  35. $(DMCDLL_OBJ_DIR)/game.o \
  36. $(DMCDLL_OBJ_DIR)/gamerules.o \
  37. $(DMCDLL_OBJ_DIR)/globals.o \
  38. $(DMCDLL_OBJ_DIR)/h_ai.o \
  39. $(DMCDLL_OBJ_DIR)/h_export.o \
  40. $(DMCDLL_OBJ_DIR)/lights.o \
  41. $(DMCDLL_OBJ_DIR)/maprules.o \
  42. $(DMCDLL_OBJ_DIR)/monsters.o \
  43. $(DMCDLL_OBJ_DIR)/monsterstate.o \
  44. $(DMCDLL_OBJ_DIR)/multiplay_gamerules.o \
  45. $(DMCDLL_OBJ_DIR)/nodes.o \
  46. $(DMCDLL_OBJ_DIR)/observer.o \
  47. $(DMCDLL_OBJ_DIR)/pathcorner.o \
  48. $(DMCDLL_OBJ_DIR)/plane.o \
  49. $(DMCDLL_OBJ_DIR)/plats.o \
  50. $(DMCDLL_OBJ_DIR)/player.o \
  51. $(DMCDLL_OBJ_DIR)/quake_gun.o \
  52. $(DMCDLL_OBJ_DIR)/quake_items.o \
  53. $(DMCDLL_OBJ_DIR)/quake_nail.o \
  54. $(DMCDLL_OBJ_DIR)/quake_player.o \
  55. $(DMCDLL_OBJ_DIR)/quake_rocket.o \
  56. $(DMCDLL_OBJ_DIR)/quake_weapons_all.o \
  57. $(DMCDLL_OBJ_DIR)/schedule.o \
  58. $(DMCDLL_OBJ_DIR)/singleplay_gamerules.o \
  59. $(DMCDLL_OBJ_DIR)/skill.o \
  60. $(DMCDLL_OBJ_DIR)/sound.o \
  61. $(DMCDLL_OBJ_DIR)/spectator.o \
  62. $(DMCDLL_OBJ_DIR)/subs.o \
  63. $(DMCDLL_OBJ_DIR)/teamplay_gamerules.o \
  64. $(DMCDLL_OBJ_DIR)/threewave_gamerules.o \
  65. $(DMCDLL_OBJ_DIR)/triggers.o \
  66. $(DMCDLL_OBJ_DIR)/util.o \
  67. $(DMCDLL_OBJ_DIR)/weapons.o \
  68. $(DMCDLL_OBJ_DIR)/world.o
  69. PM_OBJS = \
  70. $(PM_OBJ_DIR)/pm_shared.o \
  71. $(PM_OBJ_DIR)/pm_math.o \
  72. $(PM_OBJ_DIR)/pm_debug.o
  73. GAME_SHARED_OBJS = \
  74. $(GAME_SHARED_OBJ_DIR)/voice_gamemgr.o
  75. all: dirs dmc.$(SHLIBEXT)
  76. dirs:
  77. -mkdir $(BUILD_OBJ_DIR)
  78. -mkdir $(DMCDLL_OBJ_DIR)
  79. -mkdir $(PM_OBJ_DIR)
  80. -mkdir $(GAME_SHARED_OBJ_DIR)
  81. dmc.$(SHLIBEXT): $(DMCDLL_OBJS) $(PM_OBJS) $(GAME_SHARED_OBJS)
  82. $(CLINK) $(SHLIBLDFLAGS) -o $(BUILD_DIR)/$@ $(DMCDLL_OBJS) $(PM_OBJS) $(GAME_SHARED_OBJS) $(LDFLAGS) $(CPP_LIB)
  83. p4 edit ../../game/mod/dlls/$@
  84. cp $(BUILD_DIR)/$@ ../../game/mod/dlls
  85. ./gendbg.sh ../../game/mod/dlls/dmc.$(SHLIBEXT)
  86. $(DMCDLL_OBJ_DIR)/%.o : $(DMCDLL_SRC_DIR)/%.cpp
  87. $(DO_DMCDLL_CC)
  88. $(PM_OBJ_DIR)/%.o : $(PM_SRC_DIR)/%.c
  89. $(DO_PM_CC)
  90. $(GAME_SHARED_OBJ_DIR)/%.o : $(GAME_SHARED_SRC_DIR)/%.cpp
  91. $(DO_GAME_SHARED_CC)
  92. clean:
  93. -rm -rf $(GAME_SHARED_OBJ_DIR)
  94. -rm -rf $(PM_OBJ_DIR)
  95. -rm -rf $(DMCDLL_OBJ_DIR)
  96. -rm -f dmc_$(ARCH).$(SHLIBEXT)