2019-09-25 03:25:59 +00:00
|
|
|
# GNU Make project makefile autogenerated by Premake
|
|
|
|
|
|
|
|
ifndef config
|
2020-01-06 00:04:16 +00:00
|
|
|
config=debug_x64
|
2019-09-25 03:25:59 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef verbose
|
|
|
|
SILENT = @
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: clean prebuild prelink
|
|
|
|
|
|
|
|
ifeq ($(config),debug_x64)
|
|
|
|
RESCOMP = windres
|
|
|
|
TARGETDIR = ../../.build/debug_x64
|
|
|
|
TARGET = $(TARGETDIR)/libglew.a
|
|
|
|
OBJDIR = ../../.build/debug_x64/glew
|
|
|
|
DEFINES += -DGLEW_STATIC -DDEBUG -D_DEBUG
|
2020-01-06 00:04:16 +00:00
|
|
|
INCLUDES += -I../../code/glew/include -I/usr/local/include
|
2019-09-25 03:25:59 +00:00
|
|
|
FORCE_INCLUDE +=
|
|
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
2019-09-25 03:36:45 +00:00
|
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g -Wno-unused-parameter -Wno-write-strings
|
2019-09-25 03:25:59 +00:00
|
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
|
|
LIBS +=
|
|
|
|
LDDEPS +=
|
|
|
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -L../../.build/debug_x64 -m64
|
|
|
|
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
|
|
|
|
TARGETDIR = ../../.build/release_x64
|
|
|
|
TARGET = $(TARGETDIR)/libglew.a
|
|
|
|
OBJDIR = ../../.build/release_x64/glew
|
|
|
|
DEFINES += -DGLEW_STATIC -DNDEBUG
|
2020-01-06 00:04:16 +00:00
|
|
|
INCLUDES += -I../../code/glew/include -I/usr/local/include
|
2019-09-25 03:25:59 +00:00
|
|
|
FORCE_INCLUDE +=
|
|
|
|
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
|
|
|
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -fomit-frame-pointer -ffast-math -Os -g -msse2 -Wno-unused-parameter -Wno-write-strings -g1
|
|
|
|
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) -fno-exceptions -fno-rtti
|
|
|
|
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
|
|
|
LIBS +=
|
|
|
|
LDDEPS +=
|
|
|
|
ALL_LDFLAGS += $(LDFLAGS) -L/usr/lib64 -L../../.build/release_x64 -m64
|
|
|
|
LINKCMD = $(AR) -rcs "$@" $(OBJECTS)
|
|
|
|
define PREBUILDCMDS
|
|
|
|
endef
|
|
|
|
define PRELINKCMDS
|
|
|
|
endef
|
|
|
|
define POSTBUILDCMDS
|
|
|
|
endef
|
|
|
|
all: $(TARGETDIR) $(OBJDIR) prebuild prelink $(TARGET)
|
|
|
|
@:
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJECTS := \
|
|
|
|
$(OBJDIR)/glew.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 glew
|
|
|
|
$(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 glew
|
|
|
|
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) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(OBJDIR)/glew.o: ../../code/glew/glew.c
|
|
|
|
@echo $(notdir $<)
|
|
|
|
$(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
|
|
|
|
|
|
|
-include $(OBJECTS:%.o=%.d)
|
|
|
|
ifneq (,$(PCH))
|
|
|
|
-include $(OBJDIR)/$(notdir $(PCH)).d
|
|
|
|
endif
|