Updated Makefile
This commit is contained in:
@@ -1 +1,3 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
@@ -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 $<
|
||||
|
Reference in New Issue
Block a user