Skip to content

Commit

Permalink
Fix gbc rom (and confusing LCCFLAGS make variables)
Browse files Browse the repository at this point in the history
  • Loading branch information
binji committed Jul 26, 2023
1 parent 9c1b424 commit d9eeb0b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ PYTHON = python
# Possible are: gb gbc pocket megaduck sms gg
TARGETS=gbc gb pocket # megaduck sms gg

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

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

# Configure platform specific compiler flags here:
CFLAGS_gb =
CFLAGS_pocket =
CFLAGS_duck =
CFLAGS_gbc = -DCGB_SUPPORT
CFLAGS_sms =
CFLAGS_gg =

CFLAGS += $(CFLAGS_$(EXT)) # This adds the current platform specific C Flags

# You can set the name of the ROM file here
PROJECTNAME = porklike

Expand Down

0 comments on commit d9eeb0b

Please sign in to comment.