diff options
Diffstat (limited to 'libpsn00b/psxapi/makefile')
| -rw-r--r-- | libpsn00b/psxapi/makefile | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/libpsn00b/psxapi/makefile b/libpsn00b/psxapi/makefile index 819dc0a..356c162 100644 --- a/libpsn00b/psxapi/makefile +++ b/libpsn00b/psxapi/makefile @@ -1,22 +1,25 @@ # Run using make (Linux) or gmake (BSD) # Part of the PSn00bSDK Project -# 2019 Lameguy64 / Meido-Tek Productions +# 2019 - 2020 Lameguy64 / Meido-Tek Productions -include ../common.mk +include ../../psn00bsdk-setup.mk -TARGET = ../libpsxapi.a +TARGET = libpsxapi.a -SOURCES = stdio fs sys +INCLUDE = -I../include -AFILES = $(foreach dir,$(SOURCES),$(wildcard $(dir)/*.s)) -OFILES = $(addprefix build/,$(AFILES:.s=.o)) +SOURCES = stdio fs sys -AFLAGS = -g -msoft-float -Wa,--strip-local-absolute +AFILES = $(foreach dir,$(SOURCES),$(wildcard $(dir)/*.s)) +OFILES = $(addprefix build/,$(AFILES:.s=.o)) -CC = $(PREFIX)gcc -AS = $(PREFIX)as -AR = $(PREFIX)ar -RANLIB = $(PREFIX)ranlib +AFLAGS = -g -msoft-float -Wa,--strip-local-absolute + +ifndef PSN00BSDK_LIBS + +PSN00BSDK_LIBS = .. + +endif all: $(TARGET) @@ -28,5 +31,11 @@ build/%.o: %.s @mkdir -p $(dir $@) $(CC) $(AFLAGS) $(INCLUDE) -c $< -o $@ +install: +ifneq ($(PSN00BSDK_LIBS), "..") + @mkdir -p $(PSN00BSDK_LIBS) +endif + cp $(TARGET) $(PSN00BSDK_LIBS)/$(TARGET) + clean: rm -Rf build $(TARGET) |
