forked from albe/libpspvram
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (33 loc) · 957 Bytes
/
Makefile
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
###
## libpspvram library makefile
###
TARGET_LIB_vramalloc = libpspvramalloc.a
TARGET_LIB_VRAM = libpspvram.a
TARGET_LIB = $(TARGET_LIB_VRAM)
vramalloc_OBJS = vramalloc.o
VRAM_OBJS = vram.o
INCDIR =
CFLAGS = -O2 -mno-gpopt -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS =
LIBS =
all: pspvramalloc pspvram
pspvramalloc:
make TARGET_LIB=$(TARGET_LIB_vramalloc) OBJS=$(vramalloc_OBJS) $(TARGET_LIB_vramalloc)
pspvram:
make TARGET_LIB=$(TARGET_LIB_VRAM) OBJS=$(VRAM_OBJS) $(TARGET_LIB_VRAM)
clean-vramalloc:
rm -f *.o $(TARGET_LIB_vramalloc)
clean-vram:
rm -f *.o $(TARGET_LIB_VRAM)
clean: clean-vramalloc clean-vram
PSPSDK:=$(shell psp-config --pspsdk-path)
PSPDIR:=$(shell psp-config --psp-prefix)
include $(PSPSDK)/lib/build.mak
install: pspvramalloc pspvram
@cp -v $(TARGET_LIB_VRAM) $(TARGET_LIB_vramalloc) $(PSPDIR)/lib
@cp -v *.h $(PSPDIR)/include
@echo "Done."
clobber:
rm -f *.o *.a