-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
42 lines (30 loc) · 874 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
###
## libpspvram library makefile
###
TARGET_LIB_VALLOC = libpspvalloc.a
TARGET_LIB_VRAM = libpspvram.a
TARGET_LIB = $(TARGET_LIB_VRAM)
VALLOC_OBJS = valloc.o
VRAM_OBJS = vram.o
INCDIR =
CFLAGS = -G0 -mno-explicit-relocs -O2 -Wall -Werror -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LDFLAGS =
LIBS =
all: pspvalloc pspvram
pspvalloc:
rm -f *.o $(TARGET_LIB_VALLOC)
make TARGET_LIB=$(TARGET_LIB_VALLOC) OBJS=$(VALLOC_OBJS) $(TARGET_LIB_VALLOC)
pspvram:
rm -f *.o $(TARGET_LIB_VRAM)
make TARGET_LIB=$(TARGET_LIB_VRAM) OBJS=$(VRAM_OBJS) $(TARGET_LIB_VRAM)
PSPSDK=$(shell psp-config --pspsdk-path)
PSPDIR=$(shell psp-config --psp-prefix)
include $(PSPSDK)/lib/build.mak
install: pspvalloc pspvram
@cp -v $(TARGET_LIB_VRAM) $(TARGET_LIB_VALLOC) $(PSPDIR)/lib
@cp -v *.h $(PSPDIR)/include
@echo "Done."
clobber:
rm -f *.o *.a