# GNU Make project makefile autogenerated by Premake ifndef config config=debug32 endif ifndef verbose SILENT = @ endif ifndef CC CC = gcc endif ifndef CXX CXX = g++ endif ifndef AR AR = ar endif ifeq ($(config),debug32) OBJDIR = ../../intermediate/debug/gmake/serialize/x32 TARGETDIR = ../../bin TARGET = $(TARGETDIR)/serialize_debug_x32_gmake DEFINES += -DDEBUG INCLUDES += -I../../include CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -g -m32 -Weverything CXXFLAGS += $(CFLAGS) LDFLAGS += -m32 -L/usr/lib32 LIBS += RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += LINKCMD = $(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release32) OBJDIR = ../../intermediate/release/gmake/serialize/x32 TARGETDIR = ../../bin TARGET = $(TARGETDIR)/serialize_release_x32_gmake DEFINES += -DNDEBUG INCLUDES += -I../../include CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -O2 -msse2 -m32 -Weverything CXXFLAGS += $(CFLAGS) LDFLAGS += -Wl,-x -m32 -L/usr/lib32 LIBS += RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += LINKCMD = $(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),debug64) OBJDIR = ../../intermediate/debug/gmake/serialize/x64 TARGETDIR = ../../bin TARGET = $(TARGETDIR)/serialize_debug_x64_gmake DEFINES += -DDEBUG INCLUDES += -I../../include CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -g -m64 -Weverything CXXFLAGS += $(CFLAGS) LDFLAGS += -m64 -L/usr/lib64 LIBS += RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += LINKCMD = $(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif ifeq ($(config),release64) OBJDIR = ../../intermediate/release/gmake/serialize/x64 TARGETDIR = ../../bin TARGET = $(TARGETDIR)/serialize_release_x64_gmake DEFINES += -DNDEBUG INCLUDES += -I../../include CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES) CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -O2 -msse2 -m64 -Weverything CXXFLAGS += $(CFLAGS) LDFLAGS += -Wl,-x -m64 -L/usr/lib64 LIBS += RESFLAGS += $(DEFINES) $(INCLUDES) LDDEPS += LINKCMD = $(CXX) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS) define PREBUILDCMDS endef define PRELINKCMDS endef define POSTBUILDCMDS endef endif OBJECTS := \ $(OBJDIR)/serialize.o \ RESOURCES := \ SHELLTYPE := msdos ifeq (,$(ComSpec)$(COMSPEC)) SHELLTYPE := posix endif ifeq (/bin,$(findstring /bin,$(SHELL))) SHELLTYPE := posix endif .PHONY: clean prebuild prelink all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET) @: $(TARGET): $(GCH) $(OBJECTS) $(LDDEPS) $(RESOURCES) @echo Linking serialize $(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 serialize 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)) $(GCH): $(PCH) @echo $(notdir $<) -$(SILENT) cp $< $(OBJDIR) $(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<" endif $(OBJDIR)/serialize.o: ../../example/serialize/serialize.cpp @echo $(notdir $<) $(SILENT) $(CXX) $(CXXFLAGS) -o "$@" -c "$<" -include $(OBJECTS:%.o=%.d)