forked from mlafeldt/libcheats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PS3
50 lines (36 loc) · 1.43 KB
/
Makefile.PS3
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.SUFFIXES:
ifeq ($(strip $(PSL1GHT)),)
$(error "PSL1GHT must be set in the environment.")
endif
include $(PSL1GHT)/ppu_rules
#---------------------------------------------------------------------------------
ifeq ($(strip $(PLATFORM)),)
export BASEDIR := $(CURDIR)
endif
#---------------------------------------------------------------------------------
INCLUDES := -I$(BASEDIR)/include -I$(PSL1GHT)/ppu/include
CFLAGS += -O2 -Wall -DBIGENDIAN -fno-strict-aliasing $(INCLUDES)
LIBCHEATS := src/cheatlist.o src/libcheats.o src/mystring.o src/parser.o
%.o: %.c
@echo "[CC] $(notdir $<)"
@$(CC) $(DEPSOPTIONS) -DUSE_MP3 $(CFLAGS) $(INCLUDES) -c $< -o $@
#---------------------------------------------------------------------------------
libconfig.a: $(LIBCONFIG)
#---------------------------------------------------------------------------------
@echo "[AR] $(notdir $@)"
@$(AR) -rcs $@ $^
#---------------------------------------------------------------------------------
install: libcheats.a
#---------------------------------------------------------------------------------
@echo "[CP] $(notdir $@)"
@cp -f libcheats.a $(PORTLIBS)/lib/
@cp -f include/libcheats.h $(PORTLIBS)/include/
@rm -f *.d
@rm -f $(LIBCHEATS)
@rm -f *.a
#---------------------------------------------------------------------------------
clean:
#---------------------------------------------------------------------------------
rm -f *.d
rm -f src/*.o
rm -f *.a