-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
64 lines (48 loc) · 1.88 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
################################################################################
#
# Pilot Intelligence Library
# http://www.pilotintelligence.com/
#
# ----------------------------------------------------------------------------
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
################################################################################
# PIL top level makefile
################################################################################
export MAKE = make -j4
export MAKE_OS = linux
export TOPDIR = $(shell pwd)
#Where to put object files *.o
export BUILD_PATH = $(TOPDIR)/build
#Where to put final applications
export BIN_PATH = $(TOPDIR)/bin
#Where to put libraries
export LIBS_PATH = $(TOPDIR)/libs
export LIB_MAKE_TYPE = shared # static #
.PHONY: mkdirs all apps libs
all: mkdirs libs apps
libs: mkdirs
@echo "Compiling librarys of PIL"
$(MAKE) -C src
apps: mkdirs libs
@echo "Compiling apps of PIL"
$(MAKE) -C apps
.PHONY:
mkdirs:
@if [ -d ./libs ]; then echo "dir 'libs' created"; else mkdir -p ./libs; fi
@if [ -d ./build ]; then echo "dir 'build' created"; else mkdir -p ./build; fi
clean :
-rm -r $(BUILD_PATH)/$(MAKE_OS)/*