sly1/Makefile
modeco80 50a20af443 build: Split Makefile build system into multiple files
This commit makes a new build/ folder which contains auxiliary
Makefiles that are used to assist the build.

In theory, later on, (hinted by the documentation of build/core.mk),
it may be possible to even add IOP target support, but for now, I have
not yet added this to the buildsystem. It should be relatively easy, however.
2023-12-04 21:23:23 -05:00

22 lines
502 B
Makefile

NAME := SCUS_971.98
TARGET := ee
TARGETTYPE := bin
SDIR = src/P2
SRCS := $(wildcard $(SDIR)/*.cpp)
# Custom compiler flags
CCFLAGS = -Wall -Wno-unused $(BASEFLAGS) -fno-strict-aliasing -g -I$(SCE_COMMON)/include -I$(SCE_EE)/include -I$(SDIR)
CXXFLAGS = $(CCFLAGS) -fno-exceptions
LDFLAGS = -nostartfiles -Wl,-Map,$(NAME).map -T$(SCE_EE)/lib/app.cmd -L$(SCE_EE)/lib -lsn -lc -lm -lkernl
include build/core.mk
.PHONY: all clean clean-products
all: $(NAME)
clean: clean-products
rm -f $(NAME).map