Team Fortress 2 Source Code as on 22/4/2020
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.

60 lines
1.7 KiB

  1. #
  2. # VCProject file to Makefile converter
  3. #
  4. # November 2004, [email protected]
  5. #
  6. VCPM_SRC_DIR=$(SOURCE_DIR)/utils/vprojtomake
  7. UTIL_COMMON_SRC_DIR=$(SOURCE_DIR)/utils/common
  8. TIER1_PUBLIC_SRC_DIR=$(SOURCE_DIR)/public/tier1
  9. PUBLIC_SRC_DIR=$(SOURCE_DIR)/public
  10. TIER1_SRC_DIR=$(SOURCE_DIR)/tier1
  11. VCPM_OBJ_DIR=$(BUILD_OBJ_DIR)/vcpm
  12. TIER1_OBJ_DIR=$(BUILD_OBJ_DIR)/vcpm/public
  13. #we use custome CFLAGS because the base ones interfere with XERCES
  14. CFLAGS= -w -fpermissive -D_LINUX -DNDEBUG -D_alloca=alloca -D_snprintf=snprintf -D_vsnprintf=vsnprintf $(ARCH_CFLAGS)
  15. #DEBUG = -g -ggdb
  16. #CFLAGS+= $(DEBUG)
  17. INCLUDEDIRS=-I$(PUBLIC_SRC_DIR) -I$(XERCES_INC_DIR) -I$(UTIL_COMMON_SRC_DIR) -I$(TIER1_PUBLIC_SRC_DIR)
  18. LDFLAGS_VC=-lm -ldl -L$(XERCES_LIB_DIR) -lxerces-c $(GAME_DIR)/bin/tier0_i486.so $(GAME_DIR)/bin/vstdlib_i486.so
  19. DO_CC=$(CPLUS) $(INCLUDEDIRS) -w $(CFLAGS) -DARCH=$(ARCH) -o $@ -c $<
  20. #####################################################################
  21. VCPM_OBJS = \
  22. $(VCPM_OBJ_DIR)/makefilecreator.o \
  23. $(VCPM_OBJ_DIR)/vprojtomake.o \
  24. $(VCPM_OBJ_DIR)/vcprojconvert.o \
  25. TIER1_OBJS = \
  26. $(TIER1_OBJ_DIR)/characterset.o \
  27. $(TIER1_OBJ_DIR)/interface.o \
  28. $(TIER1_OBJ_DIR)/generichash.o \
  29. $(TIER1_OBJ_DIR)/KeyValues.o \
  30. $(TIER1_OBJ_DIR)/stringpool.o \
  31. $(TIER1_OBJ_DIR)/utlbuffer.o \
  32. $(TIER1_OBJ_DIR)/utlsymbol.o \
  33. all: dirs vcpm
  34. dirs:
  35. -mkdir $(BUILD_OBJ_DIR)
  36. -mkdir $(VCPM_OBJ_DIR)
  37. -mkdir $(TIER1_OBJ_DIR)
  38. vcpm: $(VCPM_OBJS) $(TIER1_OBJS)
  39. $(CLINK) $(DEBUG) -o $(BUILD_DIR)/$@ $(VCPM_OBJS) $(TIER1_OBJS) $(CPP_LIB) $(LDFLAGS_VC)
  40. $(VCPM_OBJ_DIR)/%.o: $(VCPM_SRC_DIR)/%.cpp
  41. $(DO_CC)
  42. $(TIER1_OBJ_DIR)/%.o: $(TIER1_SRC_DIR)/%.cpp
  43. $(DO_CC) -Dstricmp=strcasecmp -Dstrcmpi=strcasecmp
  44. clean:
  45. -rm -rf $(VCPM_OBJ_DIR)
  46. -rm -f vcpm