Skip to content

Commit d9eeb0b

Browse files
committed
Fix gbc rom (and confusing LCCFLAGS make variables)
1 parent 9c1b424 commit d9eeb0b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ PYTHON = python
1111
# Possible are: gb gbc pocket megaduck sms gg
1212
TARGETS=gbc gb pocket # megaduck sms gg
1313

14-
# Configure platform specific LCC flags here:
14+
# Configure platform specific link flags here:
1515
LCCFLAGS_gb = -Wm-ys #
1616
LCCFLAGS_pocket = -Wm-ys # Usually the same as required for .gb
1717
LCCFLAGS_duck = -Wm-ys # Usually the same as required for .gb
18-
LCCFLAGS_gbc = -DCGB_SUPPORT -Wm-ys -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive)
18+
LCCFLAGS_gbc = -Wm-ys -Wm-yc # Same as .gb with: -Wm-yc (gb & gbc) or Wm-yC (gbc exclusive)
1919
LCCFLAGS_sms =
2020
LCCFLAGS_gg =
2121

@@ -26,6 +26,16 @@ LCCFLAGS += -Wl-b_CALIGNED=0x0200 -Wl-b_CODE=0x300 -Wl-b_DALIGNED=0xc100 -Wl-b_D
2626
# LCCFLAGS += -debug # Uncomment to enable debug output
2727
# LCCFLAGS += -v # Uncomment for lcc verbose output
2828

29+
# Configure platform specific compiler flags here:
30+
CFLAGS_gb =
31+
CFLAGS_pocket =
32+
CFLAGS_duck =
33+
CFLAGS_gbc = -DCGB_SUPPORT
34+
CFLAGS_sms =
35+
CFLAGS_gg =
36+
37+
CFLAGS += $(CFLAGS_$(EXT)) # This adds the current platform specific C Flags
38+
2939
# You can set the name of the ROM file here
3040
PROJECTNAME = porklike
3141

0 commit comments

Comments
 (0)