Skip to content

Commit

Permalink
Simplify the examples/hucc/sgx and examples/hucc/shmup makefiles now …
Browse files Browse the repository at this point in the history
…that you

don't need to use isolink to make a working .iso for HuCC.

Add mesen2 source-level-debugging output to both examples as well.
  • Loading branch information
jbrandwood committed Nov 30, 2024
1 parent 104d1ed commit 3d2568c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
19 changes: 8 additions & 11 deletions examples/hucc/sgx/Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
all: sgx_test.iso sgx_test.sgx
all: sgx_test.sgx sgx_test.iso

include ../Make_ex.inc

SRC = sgx_test.c

CFLAGS ?= -sgx -fno-recursive
CDFLAGS = -scd -over
CFLAGS ?= --sgx -fno-recursive -gA
CDFLAGS = --scd
LIBS =

sgx_test.sgx: $(SRC)
$(CC) $(CFLAGS) $(SRC) $(LIBS)
$(MV) sgx_test.pce $@
sgx_test.iso: $(SRC)
$(CC) $(CFLAGS) $(CDFLAGS) $< $(LIBS)

sgx_test.ovl: $(SRC) sgx_test.sgx
$(CC) $(CFLAGS) $(CDFLAGS) $(SRC) $(LIBS)

sgx_test.iso: sgx_test.ovl
$(IL) $@ -ipl="SuperGRAFX Test" $^
sgx_test.sgx: $(SRC) sgx_test.iso
$(CC) $(CFLAGS) $< $(LIBS)
15 changes: 6 additions & 9 deletions examples/hucc/shmup/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ all: shmup.sgx shmup.iso

include ../Make_ex.inc

CFLAGS = -msmall -fno-recursive
CFLAGS = --sgx -fno-recursive -fsigned-char -gC
CDFLAGS = --scd
LIBS =

shmup.sgx: shmup.c
$(CC) -sgx -fsigned-char $(CFLAGS) $(LIBS) $<
$(MV) shmup.pce $@
shmup.iso: shmup.c
$(CC) $(CFLAGS) $(CDFLAGS) $< $(LIBS)

shmup.ovl: shmup.c shmup.sgx
$(CC) -sgx -scd -over -fsigned-char $(CFLAGS) $(LIBS) $<

shmup.iso: shmup.ovl
$(IL) $@ -ipl="SuperGRAFX SHMUP" $^
shmup.sgx: shmup.c shmup.iso
$(CC) $(CFLAGS) $(LIBS) $<

0 comments on commit 3d2568c

Please sign in to comment.