-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 817 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
BINOUT = ./bin/
PATHSRC = ./
PATHOBJS = $(BINOUT)
TARGET = $(BINOUT)mecsc
CPP_FILES = $(shell ls $(PATHSRC)*.cpp)
S_FILES = $(shell ls $(PATHSRC)*.S)
PATHFILES = $(CPP_FILES) $(S_FILES)
OBJS = $(notdir $(patsubst %.cpp, %.o, $(patsubst %.S, %.o, $(PATHFILES))))
OBJS := $(sort $(OBJS:%.o=$(PATHOBJS)%.o))
CFLAGS = -Ofast -G0 -Wall -fno-pic -I./kernel/src \
-Wextra -Werror
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -std=c++11
ASFLAGS = $(CFLAGS)
LIBS = -lpsppower
PSP_EBOOT_SFO = $(BINOUT)PARAM.SFO
EXTRA_TARGETS = $(BINOUT)EBOOT.PBP
PSP_EBOOT = $(EXTRA_TARGETS)
PSP_EBOOT_TITLE = VME CSC Stuff
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
$(PATHOBJS)%.o: $(PATHSRC)%.S
$(CXX) -o $@ -c $< $(ASFLAGS)
$(PATHOBJS)%.o: $(PATHSRC)%.cpp
$(CXX) -o $@ -c $< $(CXXFLAGS)