From d61bfbadf20a86d80a5640292985c8f5eff3036f Mon Sep 17 00:00:00 2001 From: /jdi/ Date: Sun, 27 Sep 2015 12:33:55 +0200 Subject: [PATCH] clean up --- Makefile | 9 +++------ README.md | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 437960c..f1d2e55 100644 --- a/Makefile +++ b/Makefile @@ -4,19 +4,16 @@ CC = g++ # compiler flags: # -g adds debugging information to the executable file # -Wall turns on most, but not all, compiler warnings -CFLAGS = -g -Wall -lrt -std=c++11 +CFLAGS = -g -Wall -lrt -lpthread -lc -std=c++11 # the build target executable: TARGET = smrtlink all: $(TARGET) -$(TARGET): $(TARGET).o - $(CC) $(CFLAGS) -o $(TARGET) $(TARGET).o +$(TARGET): src/*.cpp + $(CC) $(CFLAGS) -o $(TARGET) src/*.cpp src/*.h -$(TARGET).o: src/*.cpp - $(CC) $(CFLAGS) src/*.cpp src/*.h - clean: $(RM) $(TARGET) diff --git a/README.md b/README.md index 79bb02e..8abbfa1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # smrtlink Command-Line Tool wich might in the future be able to configure TP-Link Easy Smart Switches. -The usage is loosely based on the vswitch utility. +The usage is loosely based on the swconfig utility.