-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 934 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
PROJ=swde
PROJ_NAME=flowchart_editor
QMAKE=qmake
HOST=$(shell hostname)
ifeq ("$(wildcard /usr/bin/qmake)","")
QMAKE=qmake-qt5
endif
ifeq ("$(HOST)","merlin.fit.vutbr.cz")
ifeq ("$(wildcard /usr/bin/qmake-eq5)","")
QMAKE=/usr/local/share/Qt-5.5.1/5.5/gcc_64/bin/qmake
export LD_LIBRARY_PATH:=/usr/local/share/Qt-5.5.1/5.5/gcc_64/lib:${LD_LIBRARY_PATH}
export QT_PLUGIN_PATH:=/usr/local/share/Qt-5.5.1/5.5/gcc_64/plugins:${QT_PLUGIN_PATH}
endif
endif
PROJ_PATH=$(shell pwd)/swde
SRC_PATH=$(PROJ_PATH)/src
SRC_FILES= $(wildcard $(SRC_PATH)/*.cpp)
HDR_FILES= $(wildcard $(SRC_PATH)/*.h)
.PHONY: clean
all: $(PROJ_NAME)
$(PROJ_NAME): $(SRC_FILES) $(HDR_FILES)
-@cd $(PROJ_PATH) && $(QMAKE) && make
@mv $(PROJ_PATH)/$(PROJ_NAME) .
clean:
-@cd $(PROJ_PATH) && make clean
rm -f $(PROJ_PATH)/Makefile
rm -f $(PROJ_PATH)/$(PROJ_NAME)
rm -f $(PROJ_NAME)
pack:
zip -r itu2017.zip swde Makefile