Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps authored Feb 11, 2024
1 parent 99c46ad commit 998aaa4
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,29 @@ endif
ifeq ($(PSX), 1)
$(info --- building with PSX-DESR support)
BASENAME = PSXBBL
IOPRP_SOURCE = embed/ioprp.img
IOPRP = 1
EE_CFLAGS += -DPSX=1
EE_OBJS += scmd_add.o ioprp.o
EE_LIBS += -lxcdvd -liopreboot
EE_OBJS += scmd_add.o
EE_LIBS += -lxcdvd
else
EE_LIBS += -lcdvd
endif

ifeq ($(COH), 1)
$(info --- building for COH-H arcades)
BASENAME = SYS2x6BBL
IOPRP_SOURCE = embed/ioman_ioprp.img
IOPRP = 1
EE_CFLAGS += -DCOH=1
endif

ifeq ($(IOPRP), 1)
EE_CFLAGS += -DIOPRP=1
EE_OBJS += ioprp.o
EE_LIBS += -liopreboot
endif

ifeq ($(DEBUG), 1)
$(info --- debugging enabled)
EE_CFLAGS += -DDEBUG -O0 -g
Expand All @@ -120,7 +136,11 @@ endif

ifeq ($(USE_ROM_PADMAN), 1)
EE_CFLAGS += -DUSE_ROM_PADMAN
EE_LIBS += -lpad
ifeq ($(COH), 1)
EE_LIBS += -lpadx
else
EE_LIBS += -lpad
endif
EE_OBJS += pad.o
else
EE_OBJS += pad.o padman_irx.o
Expand All @@ -130,6 +150,9 @@ endif
ifeq ($(USE_ROM_MCMAN), 1)
EE_CFLAGS += -DUSE_ROM_MCMAN
else
ifeq ($(COH), 1)
$(error COH models need rom0:MCMAN to work appropiately)
endif
EE_OBJS += mcman_irx.o mcserv_irx.o
endif

Expand Down

0 comments on commit 998aaa4

Please sign in to comment.