forked from Banandana/SimpleJSON
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 651 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 651 Bytes
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
TARGET_LIB = libsimpleJSON.a
OBJS = src/JSON.o src/JSONValue.o
INCLUDES = src
PREFIX ?= ${VITASDK}/arm-vita-eabi
CC = arm-vita-eabi-gcc
CXX = arm-vita-eabi-g++
AR = arm-vita-eabi-ar
CFLAGS = -Wl,-q -Wall -O3 -I$(INCLUDES) -ffat-lto-objects -flto
ASFLAGS = $(CFLAGS)
all: $(TARGET_LIB)
debug: CFLAGS += -DDEBUG_BUILD
debug: all
$(TARGET_LIB): $(OBJS)
$(AR) -r $@ $^
clean:
rm -rf $(TARGET_LIB) $(OBJS)
install: $(TARGET_LIB)
@mkdir -p $(PREFIX)/lib/
@mkdir -p $(PREFIX)/include/SimpleJSON/
cp $(TARGET_LIB) $(PREFIX)/lib/
cp src/JSON.h $(PREFIX)/include/SimpleJSON/
cp src/JSONValue.h $(PREFIX)/include/SimpleJSON/