2016-12-31 01:11:22 +00:00
|
|
|
# GNU Make project makefile autogenerated by Premake
|
|
|
|
|
|
|
|
ifndef config
|
|
|
|
config=debug_x32
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef verbose
|
|
|
|
SILENT = @
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: clean prebuild prelink
|
|
|
|
|
|
|
|
ifeq ($(config),debug_x32)
|
|
|
|
RESCOMP = windres
|
2017-08-01 20:30:04 +00:00
|
|
|
TARGETDIR = ../../.build/debug_x32
|
2016-12-31 01:11:22 +00:00
|
|
|
TARGET = $(TARGETDIR)/librenderer.a
|
2017-08-01 20:30:04 +00:00
|
|
|
OBJDIR = ../../.build/debug_x32/renderer
|
2016-12-31 01:11:22 +00:00
|
|
|
DEFINES += -DDEBUG -D_DEBUG
|
|
|
|
INCLUDES += -I../../code/freetype/include
|
|
|
|
FORCE_INCLUDE +=
|
|
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
2017-10-10 17:36:12 +00:00
|
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g -Wno-unused-parameter -Wno-write-strings -std=c++98
|
2016-12-31 01:11:22 +00:00
|
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
|
|
LIBS +=
|
|
|
|
LDDEPS +=
|
2017-08-01 20:30:04 +00:00
|
|
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -L../../.build/debug_x32 -m32
|
2017-01-11 13:24:58 +00:00
|
|
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
|
|
|
define PREBUILDCMDS
|
|
|
|
endef
|
|
|
|
define PRELINKCMDS
|
|
|
|
endef
|
|
|
|
define POSTBUILDCMDS
|
|
|
|
endef
|
|
|
|
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
|
|
|
|
@:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(config),debug_x64)
|
|
|
|
RESCOMP = windres
|
2017-08-01 20:30:04 +00:00
|
|
|
TARGETDIR = ../../.build/debug_x64
|
2017-01-11 13:24:58 +00:00
|
|
|
TARGET = $(TARGETDIR)/librenderer.a
|
2017-08-01 20:30:04 +00:00
|
|
|
OBJDIR = ../../.build/debug_x64/renderer
|
2017-01-11 13:24:58 +00:00
|
|
|
DEFINES += -DDEBUG -D_DEBUG
|
|
|
|
INCLUDES += -I../../code/freetype/include
|
|
|
|
FORCE_INCLUDE +=
|
|
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
2017-10-10 17:36:12 +00:00
|
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g -Wno-unused-parameter -Wno-write-strings -std=c++98
|
2017-01-11 13:24:58 +00:00
|
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
|
|
LIBS +=
|
|
|
|
LDDEPS +=
|
2017-08-01 20:30:04 +00:00
|
|
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -L../../.build/debug_x64 -m64
|
2016-12-31 01:11:22 +00:00
|
|
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
|
|
|
define PREBUILDCMDS
|
|
|
|
endef
|
|
|
|
define PRELINKCMDS
|
|
|
|
endef
|
|
|
|
define POSTBUILDCMDS
|
|
|
|
endef
|
|
|
|
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
|
|
|
|
@:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(config),release_x32)
|
|
|
|
RESCOMP = windres
|
2017-08-01 20:30:04 +00:00
|
|
|
TARGETDIR = ../../.build/release_x32
|
2016-12-31 01:11:22 +00:00
|
|
|
TARGET = $(TARGETDIR)/librenderer.a
|
2017-08-01 20:30:04 +00:00
|
|
|
OBJDIR = ../../.build/release_x32/renderer
|
2016-12-31 01:11:22 +00:00
|
|
|
DEFINES += -DNDEBUG
|
|
|
|
INCLUDES += -I../../code/freetype/include
|
|
|
|
FORCE_INCLUDE +=
|
|
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
2017-08-01 20:30:04 +00:00
|
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -fomit-frame-pointer -ffast-math -Os -g -msse2 -Wno-unused-parameter -Wno-write-strings -g1 -std=c++98
|
2016-12-31 01:11:22 +00:00
|
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
|
|
LIBS +=
|
|
|
|
LDDEPS +=
|
2017-08-01 20:30:04 +00:00
|
|
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib32 -L../../.build/release_x32 -m32
|
2017-01-11 13:24:58 +00:00
|
|
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
|
|
|
define PREBUILDCMDS
|
|
|
|
endef
|
|
|
|
define PRELINKCMDS
|
|
|
|
endef
|
|
|
|
define POSTBUILDCMDS
|
|
|
|
endef
|
|
|
|
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
|
|
|
|
@:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(config),release_x64)
|
|
|
|
RESCOMP = windres
|
2017-08-01 20:30:04 +00:00
|
|
|
TARGETDIR = ../../.build/release_x64
|
2017-01-11 13:24:58 +00:00
|
|
|
TARGET = $(TARGETDIR)/librenderer.a
|
2017-08-01 20:30:04 +00:00
|
|
|
OBJDIR = ../../.build/release_x64/renderer
|
2017-01-11 13:24:58 +00:00
|
|
|
DEFINES += -DNDEBUG
|
|
|
|
INCLUDES += -I../../code/freetype/include
|
|
|
|
FORCE_INCLUDE +=
|
|
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
2017-08-01 20:30:04 +00:00
|
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -fomit-frame-pointer -ffast-math -Os -g -msse2 -Wno-unused-parameter -Wno-write-strings -g1 -std=c++98
|
2017-01-11 13:24:58 +00:00
|
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
|
|
LIBS +=
|
|
|
|
LDDEPS +=
|
2017-08-01 20:30:04 +00:00
|
|
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -L../../.build/release_x64 -m64
|
2016-12-31 01:11:22 +00:00
|
|
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
|
|
|
define PREBUILDCMDS
|
|
|
|
endef
|
|
|
|
define PRELINKCMDS
|
|
|
|
endef
|
|
|
|
define POSTBUILDCMDS
|
|
|
|
endef
|
|
|
|
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
|
|
|
|
@:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJECTS := \
|
2017-06-04 14:37:57 +00:00
|
|
|
$(OBJDIR)/stb_image.o \
|
2016-12-31 01:11:22 +00:00
|
|
|
$(OBJDIR)/tr_backend.o \
|
|
|
|
$(OBJDIR)/tr_bsp.o \
|
|
|
|
$(OBJDIR)/tr_cmds.o \
|
|
|
|
$(OBJDIR)/tr_curve.o \
|
|
|
|
$(OBJDIR)/tr_flares.o \
|
|
|
|
$(OBJDIR)/tr_font.o \
|
2017-03-20 23:58:59 +00:00
|
|
|
$(OBJDIR)/tr_gl2.o \
|
2016-12-31 01:11:22 +00:00
|
|
|
$(OBJDIR)/tr_image.o \
|
|
|
|
$(OBJDIR)/tr_init.o \
|
|
|
|
$(OBJDIR)/tr_light.o \
|
|
|
|
$(OBJDIR)/tr_main.o \
|
|
|
|
$(OBJDIR)/tr_marks.o \
|
|
|
|
$(OBJDIR)/tr_mesh.o \
|
|
|
|
$(OBJDIR)/tr_model.o \
|
|
|
|
$(OBJDIR)/tr_noise.o \
|
|
|
|
$(OBJDIR)/tr_scene.o \
|
|
|
|
$(OBJDIR)/tr_shade.o \
|
|
|
|
$(OBJDIR)/tr_shade_calc.o \
|
|
|
|
$(OBJDIR)/tr_shader.o \
|
|
|
|
$(OBJDIR)/tr_sky.o \
|
|
|
|
$(OBJDIR)/tr_surface.o \
|
|
|
|
$(OBJDIR)/tr_world.o \
|
|
|
|
|
|
|
|
RESOURCES := \
|
|
|
|
|
|
|
|
CUSTOMFILES := \
|
|
|
|
|
|
|
|
SHELLTYPE := msdos
|
|
|
|
ifeq (,$(ComSpec)$(COMSPEC))
|
|
|
|
SHELLTYPE := posix
|
|
|
|
endif
|
|
|
|
ifeq (/bin,$(findstring /bin,$(SHELL)))
|
|
|
|
SHELLTYPE := posix
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES)
|
|
|
|
@echo Linking renderer
|
|
|
|
$(SILENT) $(LINKCMD)
|
|
|
|
$(POSTBUILDCMDS)
|
|
|
|
|
|
|
|
$(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 renderer
|
|
|
|
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)
|
|
|
|
$(GCH): $(PCH)
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) -x c++-header $(ALL_CXXFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
|
|
|
endif
|
|
|
|
|
2017-06-04 14:37:57 +00:00
|
|
|
$(OBJDIR)/stb_image.o: ../../code/renderer/stb_image.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
2016-12-31 01:11:22 +00:00
|
|
|
$(OBJDIR)/tr_backend.o: ../../code/renderer/tr_backend.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_bsp.o: ../../code/renderer/tr_bsp.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_cmds.o: ../../code/renderer/tr_cmds.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_curve.o: ../../code/renderer/tr_curve.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_flares.o: ../../code/renderer/tr_flares.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_font.o: ../../code/renderer/tr_font.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
2017-03-20 23:58:59 +00:00
|
|
|
$(OBJDIR)/tr_gl2.o: ../../code/renderer/tr_gl2.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
2016-12-31 01:11:22 +00:00
|
|
|
$(OBJDIR)/tr_image.o: ../../code/renderer/tr_image.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_init.o: ../../code/renderer/tr_init.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_light.o: ../../code/renderer/tr_light.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_main.o: ../../code/renderer/tr_main.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_marks.o: ../../code/renderer/tr_marks.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_mesh.o: ../../code/renderer/tr_mesh.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_model.o: ../../code/renderer/tr_model.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_noise.o: ../../code/renderer/tr_noise.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_scene.o: ../../code/renderer/tr_scene.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_shade.o: ../../code/renderer/tr_shade.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_shade_calc.o: ../../code/renderer/tr_shade_calc.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_shader.o: ../../code/renderer/tr_shader.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_sky.o: ../../code/renderer/tr_sky.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_surface.o: ../../code/renderer/tr_surface.cpp
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CXX) $(ALL_CXXFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
$(OBJDIR)/tr_world.o: ../../code/renderer/tr_world.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
|