aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/lzp/makefile
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2020-09-19 20:43:05 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2020-09-19 20:43:05 +0800
commit9f4891f95070c66ea9f1aba99d72724d4ab24e5a (patch)
tree723e3ef2118a3d1a9e6dafa811ed1b8b1bc9196e /libpsn00b/lzp/makefile
parent6762c39551ded059450d17d8bb0cb80642c8aaab (diff)
downloadpsn00bsdk-9f4891f95070c66ea9f1aba99d72724d4ab24e5a.tar.gz
Revised makefiles, added strtok(), command line arguments, SetHeapSize(), moved ISR and callback system to psxetc, moved debug font to psxgpu, fixed CD-ROM library crashing on PSIO, fixed interrupt callback setup to fix crashing on ResetGraph()
Diffstat (limited to 'libpsn00b/lzp/makefile')
-rw-r--r--libpsn00b/lzp/makefile31
1 files changed, 23 insertions, 8 deletions
diff --git a/libpsn00b/lzp/makefile b/libpsn00b/lzp/makefile
index aa495b5..ce830c2 100644
--- a/libpsn00b/lzp/makefile
+++ b/libpsn00b/lzp/makefile
@@ -1,15 +1,24 @@
-include ../common.mk
+# Run using make (Linux) or gmake (BSD)
+# Part of the PSn00bSDK Project
+# 2019 - 2020 Lameguy64 / Meido-Tek Productions
-TARGET = ../liblzp.a
+include ../../psn00bsdk-setup.mk
-CFILES = $(notdir $(wildcard ./*.c))
-OFILES = $(addprefix build/,$(CFILES:.c=.o))
+TARGET = liblzp.a
-CFLAGS = -g -O2 -msoft-float -fno-builtin -nostdlib -fdata-sections -ffunction-sections -Wa,--strip-local-absolute
+INCLUDE = -I../include
-CC = $(PREFIX)gcc
-AR = $(PREFIX)ar
-RANLIB = $(PREFIX)ranlib
+CFILES = $(notdir $(wildcard ./*.c))
+OFILES = $(addprefix build/,$(CFILES:.c=.o))
+
+CFLAGS = -g -O2 -msoft-float -fno-builtin -nostdlib -fdata-sections \
+ -ffunction-sections -Wa,--strip-local-absolute
+
+ifndef PSN00BSDK_LIBS
+
+PSN00BSDK_LIBS = ..
+
+endif
all: $(TARGET)
@@ -21,5 +30,11 @@ build/%.o: %.c
@mkdir -p build
$(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
+install:
+ifneq ($(PSN00BSDK_LIBS), "..")
+ @mkdir -p $(PSN00BSDK_LIBS)
+endif
+ cp $(TARGET) $(PSN00BSDK_LIBS)/$(TARGET)
+
clean:
rm -Rf build $(OFILES) $(TARGET)