-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (26 loc) · 664 Bytes
/
makefile
File metadata and controls
36 lines (26 loc) · 664 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
PROGRAM_NAME = thread_pool
CC = gcc
CXX = g++
RM = rm -f
CP = cp -f
CXXFLAGS = --std=c++11 -g -O3 -pthread -MMD -MP -Wall -pedantic
CPPFLAGS = -I/usr/local/include
LDFLAGS = -L/usr/local/lib
LDLIBS =
INSTALL_DIR = /usr/local/include
HEADERS = $(wildcard *.hpp)
SRCS = $(wildcard *.cpp)
OBJS = $(subst .cpp,.o,$(SRCS))
DEPS = $(subst .cpp,.d,$(SRCS))
all: $(PROGRAM_NAME)
$(PROGRAM_NAME):$(OBJS)
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS)
-include $(DEPS)
clean:
$(RM) $(OBJS) $(PROGRAM_NAME) $(DEPS)
install:
sudo $(CP) $(HEADERS) $(INSTALL_DIR)
uninstall:
$(RM) $(INSTALL_DIR)/$(HEADERS)
dist-clean: clean
$(RM) *~ $(DEPS)