|
@@ -105,6 +105,18 @@ $(STRINGDIR)/%.s: $(STRINGDIR)/%.txt
|
105
|
105
|
@echo -e "\e[93mGenerating strings $<\e[0m"
|
106
|
106
|
$(STRAGB) -o $@ -i $< -t string/table.tbl -e 0xFF
|
107
|
107
|
|
|
108
|
+$(BLDPATH)/%.o: %.c $(ASSETS) $(PAGB_INCLUDE)/pokeagb/pokeagb.h src/include/script_language.h
|
|
109
|
+ @echo -e "\e[32mCompiling $<\e[0m"
|
|
110
|
+ $(shell mkdir -p $(dir $@))
|
|
111
|
+ $(CC) $(CFLAGS) -c $< -o $@
|
|
112
|
+
|
|
113
|
+$(BLDPATH)/%.o: %.s $(PAGB_INCLUDE)/pokeagb/pokeagb.h src/include/script_language.h
|
|
114
|
+ @echo -e "\e[32mAssembling $<\e[0m"
|
|
115
|
+ $(shell mkdir -p $(dir $@))
|
|
116
|
+ $(PREPROC) $< $(CHARMAP) > $*.i
|
|
117
|
+ $(CC) $(CFLAGS) -c -x assembler-with-cpp $*.i -o $@
|
|
118
|
+ @rm -f $*.i
|
|
119
|
+
|
108
|
120
|
$(MAPTS)/%.s: $(MAPTS)/%.png
|
109
|
121
|
@echo -e "\e[34mProcessing image (tileset) $<\e[0m"
|
110
|
122
|
$(GRIT) $< -o $@ -fts -gzl -pz! -pu16 -gB4 -m! -mR!
|