mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-23 04:12:42 +00:00
242 lines
No EOL
8.5 KiB
Makefile
242 lines
No EOL
8.5 KiB
Makefile
# GNU Make project makefile autogenerated by Premake
|
|
|
|
ifndef config
|
|
config=debug_x64
|
|
endif
|
|
|
|
ifndef verbose
|
|
SILENT = @
|
|
endif
|
|
|
|
.PHONY: clean prebuild prelink
|
|
|
|
ifeq ($(config),debug_x64)
|
|
RESCOMP = windres
|
|
TARGETDIR = ../../.build/debug
|
|
TARGET = $(TARGETDIR)/libbotlib.a
|
|
OBJDIR = ../../.build/debug/botlib
|
|
DEFINES += -DBOTLIB -DDEBUG -D_DEBUG
|
|
INCLUDES +=
|
|
FORCE_INCLUDE +=
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g -Wno-unused-parameter -Wno-write-strings -Wno-parentheses -Wno-parentheses-equality -std=c++98
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g -fno-exceptions -fno-rtti -Wno-unused-parameter -Wno-write-strings -Wno-parentheses -Wno-parentheses-equality -std=c++98
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
LIBS +=
|
|
LDDEPS +=
|
|
ALL_LDFLAGS += $(LDFLAGS) -L../../.build/debug -L/usr/lib64 -m64
|
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
|
define PREBUILDCMDS
|
|
endef
|
|
define PRELINKCMDS
|
|
endef
|
|
define POSTBUILDCMDS
|
|
endef
|
|
all: prebuild prelink $(TARGET)
|
|
@:
|
|
|
|
endif
|
|
|
|
ifeq ($(config),release_x64)
|
|
RESCOMP = windres
|
|
TARGETDIR = ../../.build/release
|
|
TARGET = $(TARGETDIR)/libbotlib.a
|
|
OBJDIR = ../../.build/release/botlib
|
|
DEFINES += -DBOTLIB -DNDEBUG
|
|
INCLUDES +=
|
|
FORCE_INCLUDE +=
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MD -MP $(DEFINES) $(INCLUDES)
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -ffast-math -fomit-frame-pointer -Os -g -msse2 -Wno-unused-parameter -Wno-write-strings -Wno-parentheses -Wno-parentheses-equality -g1 -std=c++98
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -ffast-math -fomit-frame-pointer -Os -g -msse2 -fno-exceptions -fno-rtti -Wno-unused-parameter -Wno-write-strings -Wno-parentheses -Wno-parentheses-equality -g1 -std=c++98
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
LIBS +=
|
|
LDDEPS +=
|
|
ALL_LDFLAGS += $(LDFLAGS) -L../../.build/release -L/usr/lib64 -m64
|
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
|
define PREBUILDCMDS
|
|
endef
|
|
define PRELINKCMDS
|
|
endef
|
|
define POSTBUILDCMDS
|
|
endef
|
|
all: prebuild prelink $(TARGET)
|
|
@:
|
|
|
|
endif
|
|
|
|
OBJECTS := \
|
|
$(OBJDIR)/be_aas_bspq3.o \
|
|
$(OBJDIR)/be_aas_cluster.o \
|
|
$(OBJDIR)/be_aas_debug.o \
|
|
$(OBJDIR)/be_aas_entity.o \
|
|
$(OBJDIR)/be_aas_file.o \
|
|
$(OBJDIR)/be_aas_main.o \
|
|
$(OBJDIR)/be_aas_move.o \
|
|
$(OBJDIR)/be_aas_optimize.o \
|
|
$(OBJDIR)/be_aas_reach.o \
|
|
$(OBJDIR)/be_aas_route.o \
|
|
$(OBJDIR)/be_aas_routealt.o \
|
|
$(OBJDIR)/be_aas_sample.o \
|
|
$(OBJDIR)/be_ai_char.o \
|
|
$(OBJDIR)/be_ai_chat.o \
|
|
$(OBJDIR)/be_ai_gen.o \
|
|
$(OBJDIR)/be_ai_goal.o \
|
|
$(OBJDIR)/be_ai_move.o \
|
|
$(OBJDIR)/be_ai_weap.o \
|
|
$(OBJDIR)/be_ai_weight.o \
|
|
$(OBJDIR)/be_ea.o \
|
|
$(OBJDIR)/be_interface.o \
|
|
$(OBJDIR)/l_crc.o \
|
|
$(OBJDIR)/l_libvar.o \
|
|
$(OBJDIR)/l_log.o \
|
|
$(OBJDIR)/l_memory.o \
|
|
$(OBJDIR)/l_precomp.o \
|
|
$(OBJDIR)/l_script.o \
|
|
$(OBJDIR)/l_struct.o \
|
|
|
|
RESOURCES := \
|
|
|
|
CUSTOMFILES := \
|
|
|
|
SHELLTYPE := posix
|
|
ifeq (.exe,$(findstring .exe,$(ComSpec)))
|
|
SHELLTYPE := msdos
|
|
endif
|
|
|
|
$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR)
|
|
@echo Linking botlib
|
|
$(SILENT) $(LINKCMD)
|
|
$(POSTBUILDCMDS)
|
|
|
|
$(CUSTOMFILES): | $(OBJDIR)
|
|
|
|
$(TARGETDIR):
|
|
@echo Creating $(TARGETDIR)
|
|
ifeq (posix,$(SHELLTYPE))
|
|
$(SILENT) mkdir -p $(TARGETDIR)
|
|
else
|
|
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
|
|
endif
|
|
|
|
$(OBJDIR):
|
|
@echo Creating $(OBJDIR)
|
|
ifeq (posix,$(SHELLTYPE))
|
|
$(SILENT) mkdir -p $(OBJDIR)
|
|
else
|
|
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
|
endif
|
|
|
|
clean:
|
|
@echo Cleaning botlib
|
|
ifeq (posix,$(SHELLTYPE))
|
|
$(SILENT) rm -f $(TARGET)
|
|
$(SILENT) rm -rf $(OBJDIR)
|
|
else
|
|
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
|
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
|
endif
|
|
|
|
prebuild:
|
|
$(PREBUILDCMDS)
|
|
|
|
prelink:
|
|
$(PRELINKCMDS)
|
|
|
|
ifneq (,$(PCH))
|
|
$(OBJECTS): $(GCH) $(PCH) | $(OBJDIR)
|
|
$(GCH): $(PCH) | $(OBJDIR)
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) -x c++-header $(ALL_CXXFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
|
else
|
|
$(OBJECTS): | $(OBJDIR)
|
|
endif
|
|
|
|
$(OBJDIR)/be_aas_bspq3.o: ../../code/botlib/be_aas_bspq3.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_cluster.o: ../../code/botlib/be_aas_cluster.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_debug.o: ../../code/botlib/be_aas_debug.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_entity.o: ../../code/botlib/be_aas_entity.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_file.o: ../../code/botlib/be_aas_file.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_main.o: ../../code/botlib/be_aas_main.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_move.o: ../../code/botlib/be_aas_move.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_optimize.o: ../../code/botlib/be_aas_optimize.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_reach.o: ../../code/botlib/be_aas_reach.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_route.o: ../../code/botlib/be_aas_route.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_routealt.o: ../../code/botlib/be_aas_routealt.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_aas_sample.o: ../../code/botlib/be_aas_sample.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ai_char.o: ../../code/botlib/be_ai_char.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ai_chat.o: ../../code/botlib/be_ai_chat.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ai_gen.o: ../../code/botlib/be_ai_gen.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ai_goal.o: ../../code/botlib/be_ai_goal.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ai_move.o: ../../code/botlib/be_ai_move.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ai_weap.o: ../../code/botlib/be_ai_weap.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ai_weight.o: ../../code/botlib/be_ai_weight.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_ea.o: ../../code/botlib/be_ea.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/be_interface.o: ../../code/botlib/be_interface.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/l_crc.o: ../../code/botlib/l_crc.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/l_libvar.o: ../../code/botlib/l_libvar.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/l_log.o: ../../code/botlib/l_log.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/l_memory.o: ../../code/botlib/l_memory.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/l_precomp.o: ../../code/botlib/l_precomp.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/l_script.o: ../../code/botlib/l_script.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
$(OBJDIR)/l_struct.o: ../../code/botlib/l_struct.cpp
|
|
@echo $(notdir $<)
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
-include $(OBJECTS:%.o=%.d)
|
|
ifneq (,$(PCH))
|
|
-include $(OBJDIR)/$(notdir $(PCH)).d
|
|
endif |