hlswmaster-ng/Makefile

26 lines
436 B
Makefile

CFLAGS := -O2 -pipe -Wall -Wunused -Wno-deprecated
LIBS := -lpthread
SRC := $(wildcard *.cpp)
OBJS := $(SRC:.cpp=.o)
DEPS := $(SRC:.cpp=.d)
all: hlswmaster
hlswmaster: $(OBJS)
$(CXX) $(CFLAGS) $^ $(LIBS) -o $@
%.o: %.cpp
$(CXX) $(CFLAGS) -c $< -o $@
%.d: %.cpp
$(CXX) $(CFLAGS) -MM -c $< -o $@
dist:
git-tar-tree HEAD hlswmaster-ng | gzip -9 -c > hlswmaster-ng.tar.gz
clean:
rm -f hlswmaster *.d *.o *.log
-include $(DEPS)