diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-04 17:46:36 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-04-06 12:41:07 -0400 |
| commit | 3144b54bd1dcc47ea339fcd2bd215ec96fc38c4a (patch) | |
| tree | 01af6a137f2d6f51df3205e2ddce2e95ea594b74 /Makefile | |
| parent | 95e48ef992a6c89a147543ba0eed8fe671cadcac (diff) | |
Enable rgbds warnings and remove CFLAGS=-O2 (default is now -O3)
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -45,8 +45,8 @@ RGBLINK ?= $(RGBDS)rgblink .SECONDARY: all: crystal -crystal: pokecrystal.gbc -crystal11: pokecrystal11.gbc +crystal: pokecrystal.gbc +crystal11: pokecrystal11.gbc crystal-au: pokecrystal-au.gbc clean: @@ -66,16 +66,17 @@ tools: $(MAKE) -C tools/ -$(crystal_obj): RGBASMFLAGS = -$(crystal11_obj): RGBASMFLAGS = -D _CRYSTAL11 -$(crystal_au_obj): RGBASMFLAGS = -D _CRYSTAL11 -D _CRYSTAL_AU +RGBASMFLAGS = -L -Weverything +$(crystal_obj): RGBASMFLAGS += +$(crystal11_obj): RGBASMFLAGS += -D _CRYSTAL11 +$(crystal_au_obj): RGBASMFLAGS += -D _CRYSTAL11 -D _CRYSTAL_AU # The dep rules have to be explicit or else missing files won't be reported. # As a side effect, they're evaluated immediately instead of when the rule is invoked. # It doesn't look like $(shell) can be deferred so there might not be a better way. define DEP $1: $2 $$(shell tools/scan_includes $2) - $$(RGBASM) $$(RGBASMFLAGS) -L -o $$@ $$< + $$(RGBASM) $$(RGBASMFLAGS) -o $$@ $$< endef # Build tools when building the rom. |
