PROJECTNAME=ymake SRC=main.cpp ymake.cpp builder.cpp OBJ=$(SRC:.cpp=.o) all: $(PROJECTNAME) LDLIBS += -lfmt -lreichwein CXXFLAGS += -std=c++17 $(PROJECTNAME): $(OBJ) $(CXX) $(LDFLAGS) $^ $(LDLIBS) $(LIBS) -o $@ %.o: %.cpp $(CXX) $(CXXFLAGS) -c $< -o $@ install: mkdir -p $(DESTDIR)/usr/bin cp $(PROJECTNAME) $(DESTDIR)/usr/bin/ clean: -rm -f *.o $(PROJECTNAME) -dh_clean deb: dpkg-buildpackage -rfakeroot .PHONY: clean install all deb