aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/psxapi
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-09-12 19:39:06 +0200
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2021-09-12 19:39:06 +0200
commitd4c6605a12d31e84d1cba2f5ef7329bcb99c8aaf (patch)
tree666d5d508277cdb3e5a6d0c2d98398f5093ab5d3 /libpsn00b/psxapi
parentc6548f077282f871bc22bd05595d3a1139f50a80 (diff)
downloadpsn00bsdk-d4c6605a12d31e84d1cba2f5ef7329bcb99c8aaf.tar.gz
Migrated libpsn00b to CMake
Diffstat (limited to 'libpsn00b/psxapi')
-rw-r--r--libpsn00b/psxapi/makefile61
1 files changed, 0 insertions, 61 deletions
diff --git a/libpsn00b/psxapi/makefile b/libpsn00b/psxapi/makefile
deleted file mode 100644
index f300e5f..0000000
--- a/libpsn00b/psxapi/makefile
+++ /dev/null
@@ -1,61 +0,0 @@
-# PSn00bSDK library makefile
-# Part of the PSn00bSDK Project
-# 2019 - 2021 Lameguy64 / Meido-Tek Productions
-
-## Settings
-
-PSN00BSDK_LIBS ?= ..
-
-include ../../psn00bsdk-setup.mk
-
-# Project target name
-TARGET = libpsxapi.a
-
-## Files
-
-SOURCES = stdio fs sys
-
-# Searches for C, C++ and S (assembler) files in local directory
-CFILES = $(foreach dir,$(SOURCES),$(wildcard $(dir)/*.c))
-CXXFILES= $(foreach dir,$(SOURCES),$(wildcard $(dir)/*.cxx))
-AFILES = $(foreach dir,$(SOURCES),$(wildcard $(dir)/*.s))
-
-# Create names for object files
-OFILES = $(addprefix build/,$(CFILES:.c=.o)) \
- $(addprefix build/,$(CXXFILES:.cxx=.o)) \
- $(addprefix build/,$(AFILES:.s=.o))
-
-# Project specific includes and libraries
-# (use -I for include dirs, -L for library dirs, -l for static libraries)
-INCLUDE +=
-LIBDIRS +=
-LIBS +=
-
-## Build rules
-
-all: build/$(TARGET)
-
-build/$(TARGET): $(OFILES)
- @mkdir -p $(dir $@)
- $(AR) crs $@ $(OFILES)
-
-build/%.o: %.c
- @mkdir -p $(dir $@)
- $(CC) $(CFLAGS_LIB) $(INCLUDE) -c $< -o $@
-
-build/%.o: %.cxx
- @mkdir -p $(dir $@)
- $(CXX) $(CPPFLAGS_LIB) $(INCLUDE) -c $< -o $@
-
-build/%.o: %.s
- @mkdir -p $(dir $@)
- $(CC) $(AFLAGS_LIB) $(INCLUDE) -c $< -o $@
-
-install:
-ifneq ($(PSN00BSDK_LIBS), "..")
- @mkdir -p $(PSN00BSDK_LIBS)
-endif
- cp build/$(TARGET) $(PSN00BSDK_LIBS)/$(TARGET)
-
-clean:
- rm -rf build