Skip to content

Commit

Permalink
Remove fluff
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Sep 10, 2024
1 parent 461f7c2 commit dd4c2c3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ SRC := src
RES := res
INCLUDE := inc


SRC_C= $(wildcard *.c)
SRC_C+= $(wildcard $(SRC)/*.c)
SRC_C+= $(wildcard $(SRC)/*/*.c)
Expand Down Expand Up @@ -69,13 +68,11 @@ INCS:= -I$(INCLUDE) -I$(SRC) -I$(RES) -I$(INCLUDE_LIB) -I$(RES_LIB)
DEFAULT_FLAGS= $(EXTRA_FLAGS) -DSGDK_GCC -m68000 -Wall -Wextra -Wno-shift-negative-value -Wno-main -Wno-unused-parameter -fno-builtin -fms-extensions $(INCS) -B$(BIN)
FLAGSZ80:= -i$(SRC) -i$(INCLUDE) -i$(RES) -i$(SRC_LIB) -i$(INCLUDE_LIB) -i$(INCLUDE_LIB)/snd

#release: FLAGS= $(DEFAULT_FLAGS) -Os -fomit-frame-pointer -fuse-linker-plugin -flto
release: FLAGS= $(DEFAULT_FLAGS) -O3 -fuse-linker-plugin -fno-web -fno-gcse -fno-unit-at-a-time -fomit-frame-pointer -flto
release: CFLAGS= $(FLAGS)
release: AFLAGS= $(FLAGS)
release: LIBMD= $(LIB)/libmd.a
release: pre-build out/rom.bin out/symbol.txt
#release: $(info $$var is [${SRC_C}])

debug: FLAGS= $(DEFAULT_FLAGS) -O1 -DDEBUG=1
debug: CFLAGS= $(FLAGS) -ggdb
Expand All @@ -94,7 +91,6 @@ ifneq ("$(wildcard $(GDK)/ext.mk)","")
include $(GDK)/ext.mk
endif

all: release
default: release

Default: release
Expand Down Expand Up @@ -139,7 +135,6 @@ pre-build:
$(MKDIR) -p $(SRC)/boot
$(MKDIR) -p out


out/rom.bin: out/rom.out
$(OBJCPY) -O binary out/rom.out out/rom.bin
$(SIZEBND) out/rom.bin -sizealign 131072 -checksum
Expand Down Expand Up @@ -169,7 +164,6 @@ $(SRC)/boot/sega.s: $(SRC_LIB)/boot/sega.s
$(SRC)/boot/rom_head.c: $(SRC_LIB)/boot/rom_head.c
$(CP) $< $@


out/%.lst: %.c
$(MKDIR) -p $(dir $@)
$(CC) $(CFLAGS) -c $< -o $@
Expand Down Expand Up @@ -200,7 +194,6 @@ out/%.o: %.rs
%.s: %.o80
$(BINTOS) $<


EXTRA_FLAGS:=-DBUILD='"$(BUILD)"' \
-Wl,--wrap=SYS_enableInts \
-Wl,--wrap=SYS_disableInts \
Expand Down

0 comments on commit dd4c2c3

Please sign in to comment.