-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 1.28 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
DIRS=bin
all: caduinfo cadupack caduunpack cadurandomise caduhead cadutail
caduinfo: src/caduinfo.cpp include/libcadu/cadu_constants.h
g++ -static --std=c++20 -o bin/caduinfo -I ./include/ -g src/caduinfo.cpp -lfec
cadupack: src/cadupack.cpp include/libcadu/cadu_constants.h
g++ -static --std=c++20 -o bin/cadupack -I ./include/ -g src/cadupack.cpp -lfec
caduunpack: src/caduunpack.cpp include/libcadu/cadu_constants.h
g++ -static --std=c++20 -o bin/caduunpack -I ./include/ -g src/caduunpack.cpp -lfec
cadurandomise: src/cadurandomise.cpp include/libcadu/cadu_constants.h
g++ -static --std=c++20 -o bin/cadurandomise -I ./include/ -g src/cadurandomise.cpp -lfec
caduhead: src/caduhead.cpp
g++ -static --std=c++20 -o bin/caduhead -I ./include/ -g src/caduhead.cpp -lfec
cadutail: src/cadutail.cpp
g++ -static --std=c++20 -o bin/cadutail -I ./include/ -g src/cadutail.cpp -lfec
.PHONY: install
install:
install -Dm 755 -t /usr/local/include/libcadu/ ./include/libcadu/*
install -D -m 755 bin/caduinfo /usr/local/bin/
install -D -m 755 bin/cadupack /usr/local/bin/
install -D -m 755 bin/caduunpack /usr/local/bin/
install -D -m 755 bin/cadurandomise /usr/local/bin/
install -D -m 755 bin/caduhead /usr/local/bin/
install -D -m 755 bin/cadutail /usr/local/bin/
$(shell mkdir -p $(DIRS))