-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
41 lines (33 loc) · 825 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
34
35
36
37
38
39
40
41
################################################################################
# FPSX/ROFS unpacking program
################################################################################
CFLAGS=-Wall -Wno-unused
CXXFLAGS=$(CFLAGS)
LIBRARIES=-lstdc++ -lunix++ -lcrypto -lz
all: unpacker
OBJECTS=\
build/5500.o \
build/akuvox.o \
build/android.o \
build/chromium.o \
build/fpsx.o \
build/haier.o \
build/images.o \
build/main.o \
build/REUtils.o \
build/rofs.o \
build/spi.o \
build/StringUtils.o \
build/qt.o \
build/TypeRegistration.o
unpacker: $(OBJECTS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJECTS) $(LIBRARIES)
build/%.o: %.cpp $(HEADERS)
@mkdir -p `dirname $@`
gcc -c $(CXXFLAGS) $< -o $@
clean:
rm -rf build
rm -f unpacker
install: unpacker
cp unpacker /usr/local/bin
.PHONY: all clean install