-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile.vita
More file actions
48 lines (34 loc) · 1.26 KB
/
Copy pathMakefile.vita
File metadata and controls
48 lines (34 loc) · 1.26 KB
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
include Makefile.common
OBJS += vita/drawing_vita.o vita/texture_vita.o vita/input_vita.o \
windows/framerateselect_win.o windows/file_win.o windows/math_win.o vita/system_vita.o vita/log_vita.o \
windows/saveload_win.o vita/soundeffect_vita.o vita/sound_vita.o vita/memoryhandler_vita.o web/netplay_web.o \
vita/screeneffect_vita.o windows/logoscreen_win.o web/thread_web.o windows/romdisk_win.o windows/windowfocusscreen_win.o
PHONY := all package clean
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
PREFIX := arm-vita-eabi
CC := arm-vita-eabi-gcc
CXX := arm-vita-eabi-g++
STRIP := arm-vita-eabi-strip
AR := arm-vita-eabi-ar
PROJECT_TITLE := Prism
PROJECT_TITLEID := VSDK00006
PROJECT := prism
CXXFLAGS += -std=c++17 -Wl,-q -O2 -g -mtune=cortex-a9 -mfpu=neon -ftree-vectorize -I ./include -DVITA
all: $(TARGET) install
$(TARGET): $(OBJS)
$(AR) -rc $@ $^
install: $(TARGET)
mv $(TARGET) $(VITASDK)/$(PREFIX)/lib/$(TARGET)
@mkdir -p $(VITASDK)/$(PREFIX)/include/prism
cp include/prism/*.h $(VITASDK)/$(PREFIX)/include/prism
%.o : %.cpp
arm-vita-eabi-g++ -c $(CXXFLAGS) -o $@ $<
%.o : %.c
arm-vita-eabi-g++ -c -o $@ $<
clean:
-rm -f $(PROJECT)
-rm -r *.o
-rm -r vita/*.o
-rm -r windows/*.o
-rm -r web/*.o
-rm -r dc/*.o