hlswmaster-ng/Makefile

23 lines
360 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 $@
clean:
rm -f hlswmaster *.d *.o *.log
-include $(DEPS)