-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 819 Bytes
/
Makefile
File metadata and controls
39 lines (32 loc) · 819 Bytes
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
#
# Makefile for quasimodo - Rev. 20240510_1522
#
CPP = g++
# PREFIX is environment variable, but if it is not set, then set default value
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
CPPFLAGS = -lstdc++fs -std=c++17
# CPPFLAGS = -std=c++14 -g3
LDFLAGS = -Wl,-t,--verbose -lpthread
all: quasimodo
autobel.o: quasimodo.cpp
echo ''
echo "compile: $(CPP) $(CPPFLAGS) -c $^ -o $@"
echo ''
$(CPP) $(CPPFLAGS) -c $^ -o $@
echo ''
autobel: quasimodo.o
echo ''
echo "link: $(CPP) $^ -o $@ $(LDFLAGS)"
$(CPP) $^ -o $@ $(LDFLAGS)
echo ''
clean:
rm quasimodo quasimodo.o
install: quasimodo
echo ''
echo 'install:'
install -d $(DESTDIR)$(PREFIX)/bin/
install -m 755 autobel $(DESTDIR)$(PREFIX)/bin/
echo "contents of destdir=$(DESTDIR) prefix=$(PREFIX):"
find "$(DESTDIR)$(PREFIX)" -exec ls -lia {} \;