Rebuild of makefile 5: trainerproc
This commit is contained in:
parent
5790200e2d
commit
5ea1f39a9d
2 changed files with 16 additions and 10 deletions
24
Makefile
24
Makefile
|
@ -155,15 +155,16 @@ endif
|
||||||
AUTO_GEN_TARGETS :=
|
AUTO_GEN_TARGETS :=
|
||||||
include make_tools.mk
|
include make_tools.mk
|
||||||
# Tool executables
|
# Tool executables
|
||||||
GFX := $(TOOLS_DIR)/gbagfx/gbagfx$(EXE)
|
GFX := $(TOOLS_DIR)/gbagfx/gbagfx$(EXE)
|
||||||
AIF := $(TOOLS_DIR)/aif2pcm/aif2pcm$(EXE)
|
AIF := $(TOOLS_DIR)/aif2pcm/aif2pcm$(EXE)
|
||||||
MID := $(TOOLS_DIR)/mid2agb/mid2agb$(EXE)
|
MID := $(TOOLS_DIR)/mid2agb/mid2agb$(EXE)
|
||||||
SCANINC := $(TOOLS_DIR)/scaninc/scaninc$(EXE)
|
SCANINC := $(TOOLS_DIR)/scaninc/scaninc$(EXE)
|
||||||
PREPROC := $(TOOLS_DIR)/preproc/preproc$(EXE)
|
PREPROC := $(TOOLS_DIR)/preproc/preproc$(EXE)
|
||||||
RAMSCRGEN := $(TOOLS_DIR)/ramscrgen/ramscrgen$(EXE)
|
RAMSCRGEN := $(TOOLS_DIR)/ramscrgen/ramscrgen$(EXE)
|
||||||
FIX := $(TOOLS_DIR)/gbafix/gbafix$(EXE)
|
FIX := $(TOOLS_DIR)/gbafix/gbafix$(EXE)
|
||||||
MAPJSON := $(TOOLS_DIR)/mapjson/mapjson$(EXE)
|
MAPJSON := $(TOOLS_DIR)/mapjson/mapjson$(EXE)
|
||||||
JSONPROC := $(TOOLS_DIR)/jsonproc/jsonproc$(EXE)
|
JSONPROC := $(TOOLS_DIR)/jsonproc/jsonproc$(EXE)
|
||||||
|
TRAINERPROC := $(TOOLS_DIR)/trainerproc/trainerproc$(EXE)
|
||||||
|
|
||||||
PERL := perl
|
PERL := perl
|
||||||
SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
|
SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
|
||||||
|
@ -305,6 +306,11 @@ generated: tools $(AUTO_GEN_TARGETS)
|
||||||
clean-generated:
|
clean-generated:
|
||||||
-rm -f $(AUTO_GEN_TARGETS)
|
-rm -f $(AUTO_GEN_TARGETS)
|
||||||
|
|
||||||
|
COMPETITIVE_PARTY_SYNTAX := $(shell PATH="$(PATH)"; echo 'COMPETITIVE_PARTY_SYNTAX' | $(CPP) $(CPPFLAGS) -imacros include/gba/defines.h -imacros include/config/general.h | tail -n1)
|
||||||
|
ifeq ($(COMPETITIVE_PARTY_SYNTAX),1)
|
||||||
|
%.h: %.party tools ; $(CPP) $(CPPFLAGS) -traditional-cpp - < $< | $(TRAINERPROC) -o $@ -i $< -
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(MODERN),0)
|
ifeq ($(MODERN),0)
|
||||||
$(C_BUILDDIR)/libc.o: CC1 := $(TOOLS_DIR)/agbcc/bin/old_agbcc$(EXE)
|
$(C_BUILDDIR)/libc.o: CC1 := $(TOOLS_DIR)/agbcc/bin/old_agbcc$(EXE)
|
||||||
$(C_BUILDDIR)/libc.o: CFLAGS := -O2
|
$(C_BUILDDIR)/libc.o: CFLAGS := -O2
|
||||||
|
|
|
@ -5,7 +5,7 @@ MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
# Inclusive list. If you don't want a tool to be built, don't add it here.
|
# Inclusive list. If you don't want a tool to be built, don't add it here.
|
||||||
TOOLS_DIR := tools
|
TOOLS_DIR := tools
|
||||||
TOOL_NAMES := aif2pcm bin2c gbafix gbagfx jsonproc mapjson mid2agb preproc ramscrgen rsfont scaninc
|
TOOL_NAMES := aif2pcm bin2c gbafix gbagfx jsonproc mapjson mid2agb preproc ramscrgen rsfont scaninc trainerproc
|
||||||
|
|
||||||
TOOLDIRS := $(TOOL_NAMES:%=$(TOOLS_DIR)/%)
|
TOOLDIRS := $(TOOL_NAMES:%=$(TOOLS_DIR)/%)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue