-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathmakefile
executable file
·64 lines (46 loc) · 1.17 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
63
# Discrete Optimal search Library (DOSL)
# Makefile for compiling examples
# Change these if needed or pass as input parameter
PREFIX = /usr/local
# ================================
# INCLUDE FOLDER
# --------------
DOSL_FOLDER = $(PREFIX)/include
# --------------------------------------------
# Install
.PHONY: install
install:
cp -r dosl $(DOSL_FOLDER)
find $(DOSL_FOLDER)/dosl -type d -exec chmod 755 {} \;
find $(DOSL_FOLDER)/dosl -type f -exec chmod 644 {} \;
.PHONY: uninstall
uninstall:
rm -rf $(DOSL_FOLDER)/dosl
# --------------------------------------------
# Make and run all example programs
.PHONY: all
all:
cd examples-dosl && make all
.PHONY: run
run:
cd examples-dosl && make run
# --------------------------------------------
# Examples
.PHONY: examples
examples:
cd examples-dosl && make all
.PHONY: examples-test
examples-test:
cd examples-dosl && make test
.PHONY: examples-simple
examples-simple:
cd examples-dosl && make simple
.PHONY: examples-advanced
examples-advanced:
cd examples-dosl && make advanced
.PHONY: examples-run
examples-run:
cd examples-dosl && make clean
.PHONY: examples-clean
examples-clean:
cd examples-dosl && make clean