forked from open-license-manager/licensecc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (22 loc) · 752 Bytes
/
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
CXX := g++
CXX_FLAGS := -Wall -Wextra -std=c++17 -ggdb
BIN := bin
SRC := src
INC := inc
LIB := lib
BOOST_ROOT := /usr/lib/x86_64-linux-gnu/
BOOST_INCL := ${BOOST_ROOT}
LIBRARIES := -lcrypto -lboost_program_options -lboost_filesystem
EXECUTABLE := pcid
staticlibrary: $(SRC)/*.cpp
$(CXX) $(CXX_FLAGS) -I$(INC) -I$(BOOST_INCL) -L$(LIB) $^ -static -fPIC $(LIBRARIES) -o $(BIN)/pcid.a
sharedlibrary: $(SRC)/*.cpp
$(CXX) $(CXX_FLAGS) -I$(INC) -I$(BOOST_INCL) -L$(LIB) $^ -shared -fPIC $(LIBRARIES) -o $(BIN)/pcid.so
all: $(BIN)/$(EXECUTABLE)
run: clean all
clear
./$(BIN)/$(EXECUTABLE)
$(BIN)/$(EXECUTABLE): $(SRC)/*.cpp
$(CXX) $(CXX_FLAGS) -I$(INC) -I$(BOOST_INCL) -L$(LIB) $^ -o $@ $(LIBRARIES)
clean:
-rm $(BIN)/*