-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (18 loc) · 708 Bytes
/
Makefile
File metadata and controls
25 lines (18 loc) · 708 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
CXX = g++
CXXFLAGS = -Wall -Wextra -Wpedantic -O3
.DEFAULT_GOAL := all
# Allow overriding this variable to customize installation directory
INCLUDEDIR ?= /usr/local/include
# Header-only lib filename
HEADER_SRC = ThreadPool.h
HEADER_DEST = ThreadPool
.PHONY: all clean install uninstall
all:
@echo -e 'Nothing to compile for templated library\nRun with `sudo make install` to move the header-only library to the directory given by the $$INCLUDEDIR variable\n\t/usr/local/include by default (if not set)'
install:
install -d $(INCLUDEDIR)
install -m 644 $(HEADER_SRC) $(INCLUDEDIR)/$(HEADER_DEST)
uninstall:
rm -f $(INCLUDEDIR)/$(HEADER_DEST)
clean:
@echo "Nothing to clean for templated library"