30 lines
414 B
Makefile
30 lines
414 B
Makefile
|
NAME=ps2rom_iop
|
||
|
TARGET=iop
|
||
|
KIND=lib
|
||
|
|
||
|
INCS = -I$(TOP)/rom
|
||
|
|
||
|
CFLAGS = -ffreestanding -fno-stack-protector
|
||
|
CXXFLAGS = -fno-exceptions -fno-rtti
|
||
|
|
||
|
# sources
|
||
|
SRCS = _iop_start.s \
|
||
|
iop_sio.c \
|
||
|
iop_start.c
|
||
|
|
||
|
.PHONY: all clean clean-products
|
||
|
|
||
|
include $(TOP)/build/core.mk
|
||
|
|
||
|
all: $(BINDIR)/lib$(FINALNAME).a
|
||
|
|
||
|
$(BINDIR)/:
|
||
|
mkdir -p $@
|
||
|
|
||
|
$(OBJDIR)/:
|
||
|
mkdir -p $@
|
||
|
|
||
|
clean: clean-products
|
||
|
|
||
|
include $(TOP)/build/products/$(KIND).mk
|