summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-09-04 15:11:57 -0400
committerhuderlem <huderlem@gmail.com>2019-09-05 20:48:48 -0500
commit904bba9e16f99bc7a306b6705948cbfe14e41786 (patch)
tree0043897a08d1cc9f162f540994d11df6dd5cd503 /Makefile
parente2fbce996e08769f5cd18f77c65818b6f5e34080 (diff)
NULL_BATTLE_TOWER_POKEMON define
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 63233111f..85d3f6a51 100644
--- a/Makefile
+++ b/Makefile
@@ -121,7 +121,8 @@ else
NODEP := 1
endif
-C_SRCS := $(wildcard $(C_SUBDIR)/*.c $(C_SUBDIR)/*/*.c $(C_SUBDIR)/*/*/*.c)
+C_SRCS_IN := $(wildcard $(C_SUBDIR)/*.c $(C_SUBDIR)/*/*.c $(C_SUBDIR)/*/*/*.c)
+C_SRCS := $(foreach src,$(C_SRCS_IN),$(if $(findstring .inc.c,$(src)),,$(src)))
C_OBJS := $(patsubst $(C_SUBDIR)/%.c,$(C_BUILDDIR)/%.o,$(C_SRCS))
C_ASM_SRCS += $(wildcard $(C_SUBDIR)/*.s $(C_SUBDIR)/*/*.s $(C_SUBDIR)/*/*/*.s)