-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile.unix.in
43 lines (32 loc) · 945 Bytes
/
Makefile.unix.in
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
detected_OS ?= $(shell uname -s)
ifeq ($(detected_OS),Darwin)
all:
echo "OMSens_Qt is not supported on MacOS"
else
all: omsens_qt
endif
CC="@CC@" CXX="@CXX@" CFLAGS="@CFLAGS@" CPPFLAGS="@CPPFLAGS@"
QMAKE=@QMAKE@
builddir_lib=../build/lib/@host_short@/omc
NAME=omsensplugin
SHREXT=.so
LIB=libomsensplugin
mkbuilddirs:
mkdir -p $(builddir_lib)
omsens_qt: mkbuilddirs install
install: build
cp -p bin/$(LIB)$(SHREXT)* $(builddir_lib)
build: $(NAME)
$(MAKE) -f Makefile
$(NAME): Makefile
$(MAKE) -f Makefile
Makefile: OMSens_Qt.pro
$(QMAKE) "CONFIG+=release"
MakefileClean: OMSens_Qt.pro
$(QMAKE) "CONFIG+=release"
clean: MakefileClean
test ! -f Makefile || $(MAKE) -f Makefile clean
rm -f bin/$(LIB)$(SHREXT)*
rm -rf debug release generatedfiles Makefile Makefile.Debug Makefile.Release object_script.*
distclean: clean
rm -rf config.log config.sub config.status install-sh autom4te.cache config.guess configure Makefile.unix