forked from HACKERCHANNEL/PSL1GHT
-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 731 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
UNAME := $(shell uname -s)
ifeq ($(strip $(PS3DEV)),)
ifeq ($(strip $(DEVKITPS3)),)
export PS3DEV := /usr/local/ps3dev
else
export PS3DEV := $(DEVKITPS3)
endif
endif
ifneq (,$(findstring MINGW,$(UNAME)))
PLATFORM := win32
COMPILER := --compiler=mingw32
OS := win32
endif
all: pkgcrypt.so
pkgcrypt.so: crypt.c setup.py
@python3 setup.py build_ext $(COMPILER)
@cp build/lib.*/pkgcrypt.* .
clean:
@echo clean ...
@rm -rf build pkgcrypt.*
install: all
@[ -d $(PS3DEV)/bin ] || mkdir -p $(PS3DEV)/bin
@echo Installing ICON0.PNG sfo.xml pkgcrypt.* fself.py Struct.py sfo.py pkg.py
@install -m 644 ICON0.PNG sfo.xml pkgcrypt.* Struct.py $(PS3DEV)/bin
@install -m 755 fself.py sfo.py pkg.py $(PS3DEV)/bin/