-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
53 lines (43 loc) · 1.11 KB
/
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
49
50
51
52
53
EE_LIB = libps2stuff.a
EE_LDFLAGS += -L. -L$(PS2SDK)/ports/lib
EE_INCS += -I./include -I$(PS2SDK)/ports/include
ifeq ($(DEBUG), 1)
EE_CFLAGS += -D_DEBUG
EE_CXXFLAGS += -D_DEBUG
endif
# Disabling warnings
WARNING_FLAGS = -Wno-strict-aliasing -Wno-conversion-null
# VU0 code is broken so disable for now
EE_CFLAGS += $(WARNING_FLAGS) -DNO_VU0_VECTORS -DNO_ASM
EE_CXXFLAGS += $(WARNING_FLAGS) -DNO_VU0_VECTORS -DNO_ASM
EE_OBJS = \
src/core.o \
src/cpu_matrix.o \
src/displayenv.o \
src/drawenv.o \
src/eetimer.o \
src/gs.o \
src/gsmem.o \
src/imagepackets.o \
src/math.o \
src/matrix.o \
src/packet.o \
src/perfmon.o \
src/ps2stuff.o \
src/sprite.o \
src/texture.o \
src/timer.o \
src/utils.o
all: $(EE_LIB)
install: all
mkdir -p $(PS2SDK)/ports/include
mkdir -p $(PS2SDK)/ports/lib
cp -rf include/ps2s $(PS2SDK)/ports/include
cp -f $(EE_LIB) $(PS2SDK)/ports/lib
clean:
rm -f $(EE_OBJS_LIB) $(EE_OBJS) $(EE_BIN) $(EE_LIB)
realclean: clean
rm -rf $(PS2SDK)/ports/include/ps2s
rm -f $(PS2SDK)/ports/lib/$(EE_LIB)
include $(PS2SDK)/Defs.make
include $(PS2SDK)/samples/Makefile.eeglobal