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