aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libpsn00b/makefile')
-rw-r--r--libpsn00b/makefile21
1 files changed, 14 insertions, 7 deletions
diff --git a/libpsn00b/makefile b/libpsn00b/makefile
index b3f6896..c2cf62f 100644
--- a/libpsn00b/makefile
+++ b/libpsn00b/makefile
@@ -1,16 +1,23 @@
# Run using make (Linux) or gmake (BSD)
# Part of the PSn00bSDK Project
-# 2019 Lameguy64 / Meido-Tek Productions
+# 2019 - 2020 Lameguy64 / Meido-Tek Productions
TOPTARGETS = all clean
-LIBDIRS = libc lzp psxgpu psxgte psxapi psxetc psxspu psxsio psxcd
+LIBS = libc psxgpu psxapi psxgte psxcd psxetc psxsio psxspu lzp
+$(TOPTARGETS): $(LIBS)
-$(TOPTARGETS): $(LIBDIRS)
-$(LIBDIRS):
- @$(MAKE) -C $@ $(MAKECMDGOALS)
+install: $(LIBS)
+ifdef PSN00BSDK_LIBS
+ifneq ($(CURDIR),$(PSN00BSDK_LIBS)) # needs a better method
+ cp -R include $(PSN00BSDK_LIBS)/include
+endif
+endif
-clean: $(LIBDIRS)
+clean: $(LIBS)
-.PHONY: $(TOPTARGETS) $(LIBDIRS)
+$(LIBS):
+ @$(MAKE) -C $@ $(MAKECMDGOALS)
+
+.PHONY: $(TOPTARGETS) $(LIBS)