# Alternative GNU Make project makefile autogenerated by Premake ifndef config config=release_64bit endif ifndef verbose SILENT = @ endif .PHONY: clean prebuild SHELLTYPE := posix ifeq (.exe,$(findstring .exe,$(ComSpec))) SHELLTYPE := msdos endif # Configurations # ############################################# ifeq ($(origin CC), default) CC = clang endif ifeq ($(origin CXX), default) CXX = clang++ endif ifeq ($(origin AR), default) AR = ar endif INCLUDES += -I../wren_c/src/include FORCE_INCLUDE += ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES) ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES) LIBS += -lsafe_wren LDDEPS += ALL_LDFLAGS += $(LDFLAGS) -L../target/debug LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS) define PREBUILDCMDS @echo Running prebuild commands cargo build endef define PRELINKCMDS endef define POSTBUILDCMDS endef ifeq ($(config),release_64bit) TARGETDIR = bin TARGET = $(TARGETDIR)/wren_test OBJDIR = obj/64bit/Release DEFINES += -DNDEBUG ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O2 -std=c99 ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O2 else ifeq ($(config),release_32bit) TARGETDIR = bin TARGET = $(TARGETDIR)/wren_test OBJDIR = obj/32bit/Release DEFINES += -DNDEBUG ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O2 -std=c99 ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -O2 else ifeq ($(config),debug_64bit) TARGETDIR = bin TARGET = $(TARGETDIR)/wren_test_d OBJDIR = obj/64bit/Debug DEFINES += -DDEBUG ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -std=c99 ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g else ifeq ($(config),debug_32bit) TARGETDIR = bin TARGET = $(TARGETDIR)/wren_test_d OBJDIR = obj/32bit/Debug DEFINES += -DDEBUG ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -g -std=c99 ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -g endif # Per File Configurations # ############################################# # File sets # ############################################# GENERATED := OBJECTS := GENERATED += $(OBJDIR)/api_tests.o GENERATED += $(OBJDIR)/benchmark.o GENERATED += $(OBJDIR)/call.o GENERATED += $(OBJDIR)/call_calls_foreign.o GENERATED += $(OBJDIR)/call_wren_call_root.o GENERATED += $(OBJDIR)/error.o GENERATED += $(OBJDIR)/foreign_class.o GENERATED += $(OBJDIR)/get_variable.o GENERATED += $(OBJDIR)/handle.o GENERATED += $(OBJDIR)/lists.o GENERATED += $(OBJDIR)/main.o GENERATED += $(OBJDIR)/maps.o GENERATED += $(OBJDIR)/new_vm.o GENERATED += $(OBJDIR)/reset_stack_after_call_abort.o GENERATED += $(OBJDIR)/reset_stack_after_foreign_construct.o GENERATED += $(OBJDIR)/resolution.o GENERATED += $(OBJDIR)/slots.o GENERATED += $(OBJDIR)/test.o GENERATED += $(OBJDIR)/user_data.o OBJECTS += $(OBJDIR)/api_tests.o OBJECTS += $(OBJDIR)/benchmark.o OBJECTS += $(OBJDIR)/call.o OBJECTS += $(OBJDIR)/call_calls_foreign.o OBJECTS += $(OBJDIR)/call_wren_call_root.o OBJECTS += $(OBJDIR)/error.o OBJECTS += $(OBJDIR)/foreign_class.o OBJECTS += $(OBJDIR)/get_variable.o OBJECTS += $(OBJDIR)/handle.o OBJECTS += $(OBJDIR)/lists.o OBJECTS += $(OBJDIR)/main.o OBJECTS += $(OBJDIR)/maps.o OBJECTS += $(OBJDIR)/new_vm.o OBJECTS += $(OBJDIR)/reset_stack_after_call_abort.o OBJECTS += $(OBJDIR)/reset_stack_after_foreign_construct.o OBJECTS += $(OBJDIR)/resolution.o OBJECTS += $(OBJDIR)/slots.o OBJECTS += $(OBJDIR)/test.o OBJECTS += $(OBJDIR)/user_data.o # Rules # ############################################# all: $(TARGET) @: $(TARGET): $(GENERATED) $(OBJECTS) $(LDDEPS) | $(TARGETDIR) $(PRELINKCMDS) @echo Linking wren_test $(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 wren_test ifeq (posix,$(SHELLTYPE)) $(SILENT) rm -f $(TARGET) $(SILENT) rm -rf $(GENERATED) $(SILENT) rm -rf $(OBJDIR) else $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET)) $(SILENT) if exist $(subst /,\\,$(GENERATED)) rmdir /s /q $(subst /,\\,$(GENERATED)) $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR)) endif prebuild: | $(OBJDIR) $(PREBUILDCMDS) ifneq (,$(PCH)) $(OBJECTS): $(GCH) | $(PCH_PLACEHOLDER) $(GCH): $(PCH) | prebuild @echo $(notdir $<) $(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<" $(PCH_PLACEHOLDER): $(GCH) | $(OBJDIR) ifeq (posix,$(SHELLTYPE)) $(SILENT) touch "$@" else $(SILENT) echo $null >> "$@" endif else $(OBJECTS): | prebuild endif # File Rules # ############################################# $(OBJDIR)/api_tests.o: api/api_tests.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/benchmark.o: api/benchmark.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/call.o: api/call.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/call_calls_foreign.o: api/call_calls_foreign.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/call_wren_call_root.o: api/call_wren_call_root.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/error.o: api/error.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/foreign_class.o: api/foreign_class.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/get_variable.o: api/get_variable.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/handle.o: api/handle.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/lists.o: api/lists.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/maps.o: api/maps.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/new_vm.o: api/new_vm.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/reset_stack_after_call_abort.o: api/reset_stack_after_call_abort.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/reset_stack_after_foreign_construct.o: api/reset_stack_after_foreign_construct.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/resolution.o: api/resolution.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/slots.o: api/slots.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/user_data.o: api/user_data.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/main.o: main.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" $(OBJDIR)/test.o: test.c @echo $(notdir $<) $(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<" -include $(OBJECTS:%.o=%.d) ifneq (,$(PCH)) -include $(PCH_PLACEHOLDER).d endif