mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-24 21:15:12 +00:00
Fix up Makefile for coop-compiler
This commit is contained in:
parent
e371ff272b
commit
1910177b1d
2 changed files with 9 additions and 5 deletions
8
Makefile
8
Makefile
|
@ -2,9 +2,6 @@
|
|||
|
||||
include util.mk
|
||||
|
||||
# Dynos
|
||||
include dynos.mk
|
||||
|
||||
# Default target
|
||||
default: all
|
||||
|
||||
|
@ -96,7 +93,7 @@ $(eval $(call validate-option,COMPILER,ido gcc))
|
|||
|
||||
ifeq ($(WINDOWS_AUTO_BUILDER),1)
|
||||
export SHELL=sh.exe
|
||||
EXTRA_INCLUDES := ../include/1 ../include/2 ../include/3 ../include/4
|
||||
EXTRA_INCLUDES := -I ../include/1 -I ../include/2 -I ../include/3 -I ../include/4
|
||||
EXTRA_CFLAGS := -Wno-expansion-to-defined
|
||||
|
||||
EXTRA_CPP_INCLUDES := ../include/cpp
|
||||
|
@ -476,6 +473,9 @@ GODDARD_SRC_DIRS := src/goddard src/goddard/dynlists
|
|||
# File dependencies and variables for specific files
|
||||
include Makefile.split
|
||||
|
||||
# Dynos
|
||||
include dynos.mk
|
||||
|
||||
# Source code files
|
||||
LEVEL_C_FILES := $(wildcard levels/*/leveldata.c) $(wildcard levels/*/script.c) $(wildcard levels/*/geo.c)
|
||||
C_FILES := $(foreach dir,$(SRC_DIRS),$(wildcard $(dir)/*.c)) $(LEVEL_C_FILES)
|
||||
|
|
|
@ -188,12 +188,16 @@ endef
|
|||
|
||||
ifneq ($(MAKECMDGOALS),clean)
|
||||
ifneq ($(MAKECMDGOALS),distclean)
|
||||
ifeq ($(WINDOWS_AUTO_BUILDER),1)
|
||||
include $(BUILD_DIR)/level_rules.mk
|
||||
else
|
||||
$(BUILD_DIR)/level_rules.mk: levels/level_rules.mk levels/level_defines.h
|
||||
@$(PRINT) "$(GREEN)Preprocessing level make rules: $(BLUE)$@ $(NO_COL)\n"
|
||||
@$(CPP) $(VERSION_CFLAGS) -I . $(EXTRA_INCLUDES) -o $@ $<
|
||||
$(V)$(CPP) $(VERSION_CFLAGS) -I . $(EXTRA_INCLUDES) -o $@ $<
|
||||
include $(BUILD_DIR)/level_rules.mk
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# --------------------------------------
|
||||
# Extra Level Rules
|
||||
|
|
Loading…
Reference in a new issue