Commit 22a4de17 authored by Gabriel Margiani's avatar Gabriel Margiani

meta files

parent 89032270
CXX = g++
CXXFLAGS = -Wall -g -std=c++14 -MD
LIBS = -lpthread -lrt
SRCS = $(wildcard src/*.cpp)
OBJS = $(SRCS:.cpp=.o)
MAIN = 3phone
.PHONY: depend clean
all: $(MAIN)
@echo "3phone build."
$(MAIN): $(OBJS)
@echo Linking...
@$(CXX) $(CXXFLAGS) -o $(MAIN) $(OBJS) $(LIBS)
%.o : %.cpp
@echo "$< --> $@"
@$(CXX) $(CXXFLAGS) -c $< -o $@
@cp $*.d $*.P; \
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
-e '/^$$/ d' -e 's/$$/ :/' < $*.d >> $*.P; \
rm -f "$*.d"
@rm src/*.o $(MAIN)
-include $(SRCS:.cpp=.P)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment