diff --git a/RestServer/main.c b/RestServer/main.c index 8d1c8b6..d058105 100644 --- a/RestServer/main.c +++ b/RestServer/main.c @@ -1 +1,3 @@ - +#include +#include + diff --git a/RestServer/makefile b/RestServer/makefile index 646fd89..0033a5e 100644 --- a/RestServer/makefile +++ b/RestServer/makefile @@ -5,12 +5,12 @@ VERSION = 1.0 CC = cc CFLAGS = -Wall -g -D_GNU_SOURCE -D_REENTRANT -DVERSION=\"$(VERSION)\" `mysql_config --cflags` #LDFLAGS = -lm -lpthread `gtk-config --cflags` `gtk-config --libs` -lgthread -LDFLAGS = -lwiringPi -lconfig `mysql_config --libs` -lcurl -lm +LDFLAGS = `mysql_config --libs` -lm -OBJ = main.o dht22.o sendmysql.o configreader.o cJSON.o restcurl.o calculate.o +OBJ = main.o sendmysql.o calculate.o dht22: $(OBJ) - $(CC) $(CFLAGS) -o humiditypi $(OBJ) $(LDFLAGS) + $(CC) $(CFLAGS) -o humidityserver $(OBJ) $(LDFLAGS) %.o: %.c $(CC) $(CFLAGS) -c $<