-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (33 loc) · 933 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
42
43
44
45
46
CC = `wx-config --cxx`
LDFLAGS = `wx-config --libs` -Lunrar -lunrar -Lunzip -lminiunzip
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
.SUFFIXES: .cpp .o .a
OBJS = $(patsubst %.cpp,%.o,$(wildcard src/*.cpp))
all: comical
comical: $(OBJS) unrar/libunrar.a unzip/libminiunzip.a
$(CC) -o $@ $(OBJS) $(LDFLAGS)
$(OBJS):
$(MAKE) -C src
unrar/libunrar.a:
$(MAKE) lib -C unrar -f makefile.linux
unzip/libminiunzip.a:
$(MAKE) -C unzip
install: comical
$(INSTALL_PROGRAM) comical $(DESTDIR)$(bindir)/comical
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
uninstall:
rm -f $(DESTDIR)$(bindir)/comical
clean:
$(MAKE) clean -C src
rm -f comical
distclean:
$(MAKE) clean
$(MAKE) clean -C unrar -f makefile.linux
$(MAKE) clean -C unzip
rm -f $(DEPS) bin2h src/bin2h.o
.PHONY : install install-strip uninstall clean distclean