mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
21 lines
294 B
Makefile
21 lines
294 B
Makefile
|
|
SRC = $(sort $(wildcard src/*.cpp))
|
|
OBJS = $(SRC:.cpp=.cpp.o)
|
|
|
|
CGI_EXE = lokinet-bootserv
|
|
|
|
CXX = clang++
|
|
|
|
all: build
|
|
|
|
build: $(CGI_EXE)
|
|
|
|
%.cpp.o: %.cpp
|
|
$(CXX) -g -std=c++17 -c -Wall -Werror -Wpedantic $^ -o $^.o
|
|
|
|
$(CGI_EXE): $(OBJS)
|
|
$(CXX) -o $(CGI_EXE) $^
|
|
|
|
clean:
|
|
rm -f $(CGI_EXE) $(OBJS)
|