-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
47 lines (32 loc) · 935 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
47
#############################
# The qt5 qmake
#
# On a system where qt5 qmake is the one in the path, then no
# argument is needed. If not, then invoke with, e.g., `make QMAKE=qmake-qt5`
QMAKE?=qmake
QMAKE_PATH := $(shell which qmake 2>/dev/null)
$(info $(QMAKE_PATH))
ifeq "$(QMAKE_PATH)" ""
QMAKE=qmake-qt5
endif
##############################
all: librtimv rtimv
makefile.librtimv: librtimv.pro
$(QMAKE) -makefile librtimv.pro
makefile.rtimv: rtimv.pro
$(QMAKE) -makefile rtimv.pro
librtimv: makefile.librtimv
$(MAKE) -f makefile.librtimv
rtimv: makefile.rtimv
$(MAKE) -f makefile.rtimv
install: makefile.librtimv makefile.rtimv librtimv rtimv
$(MAKE) -f makefile.librtimv install
$(MAKE) -f makefile.rtimv install
clean:
rm -f obj/*.o *~
rm -f moc/moc_* res/qrc_* forms/ui_*
rm -f makefile.librtimv
rm -f makefile.rtimv
rm -f bin/librtimv.so*
rm -f bin/rtimv
.PHONY: all install clean librtimv rtimv