diff options
Diffstat (limited to 'plain_tool/Makefile')
-rw-r--r-- | plain_tool/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plain_tool/Makefile b/plain_tool/Makefile new file mode 100644 index 0000000..e35d6b1 --- /dev/null +++ b/plain_tool/Makefile @@ -0,0 +1,39 @@ +C = gcc +CFLAGS = -g -Wall +C++ = g++ +CCFLAGS = -g -Wall +LD = g++ +LDFLAGS = -g -Wall -O2 -lpthread + +OBJS = plain_tool.o \ + signalController.o \ + PracticalSocket.o \ + log.o \ + options.o + +EXECUTABLE = plain_tool + +all: $(EXECUTABLE) + +plain_tool: $(OBJS) + $(LD) $(OBJS) -o $@ $(LDFLAGS) + +signalController.o: ../signalController.cpp ../signalController.h + $(C++) $(CCFLAGS) $< -c + +PracticalSocket.o: ../PracticalSocket.cpp ../PracticalSocket.h + $(C++) $(CCFLAGS) $< -c + +log.o: ../log.cpp ../log.h + $(C++) $(CCFLAGS) $< -c + +options.o: options.cpp options.h + $(C++) $(CCFLAGS) $< -c + +plain_tool.o: plain_tool.cpp + $(C++) $(CCFLAGS) $< -c + +clean: + rm -f *.o + rm -f $(EXECUTABLE) + |