-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·57 lines (43 loc) · 1.07 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
54
55
56
57
all:
mv pspnet_miniupnc.prx ../dist/kd/pspnet_miniupnc.prx
cp LICENSE ../dist/docs/miniupnc-license
TARGET = pspnet_miniupnc
LIBRARYOBJS = \
library/connecthostport.o \
library/igd_desc_parse.o \
library/minisoap.o \
library/miniupnpc.o \
library/minissdpc.o \
library/miniwget.o \
library/minixml.o \
library/portlistingparse.o \
library/receivedata.o \
library/upnpcommands.o \
library/upnperrors.o \
library/upnpreplyparse.o
LIBS =
OBJS = main.o ../memab/ATPRO.o $(LIBRARYOBJS)
#CFLAGS = -Os -G0 -Wall -fno-pic
CFLAGS = -O0 -G0 -Wall -fno-pic
ifeq ($(CONFIG_620), 1)
CFLAGS += -DCONFIG_620=1
endif
ifeq ($(CONFIG_63X), 1)
CFLAGS += -DCONFIG_63X=1
endif
ifeq ($(CONFIG_660), 1)
CFLAGS += -DCONFIG_660=1
endif
ifeq ($(RELEASE), 1)
CFLAGS += -DRELEASE=1
else
CFLAGS += -DDEBUG=1
endif
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
BUILD_PRX = 1
PRX_EXPORTS = exports.exp
USE_PSPSDK_LIBC = 1
LDFLAGS = -mno-crt0 -nostartfiles
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak