hlswmaster-ng/Makefile

26 lines
436 B
Makefile
Raw Normal View History

2006-02-02 16:55:44 +01:00
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 $@
2006-03-05 02:28:19 +01:00
dist:
git-tar-tree HEAD hlswmaster-ng | gzip -9 -c > hlswmaster-ng.tar.gz
2006-02-02 16:55:44 +01:00
clean:
rm -f hlswmaster *.d *.o *.log
-include $(DEPS)