NEW: #1 Mysql support, makefile and readme update, sensor struct update

This commit is contained in:
2017-01-28 13:56:47 +01:00
parent 2167638d2b
commit c8182dafec
7 changed files with 104 additions and 10 deletions

View File

@@ -3,11 +3,11 @@
VERSION = 1.0
CC = /usr/bin/gcc
CFLAGS = -Wall -g -D_REENTRANT -DVERSION=\"$(VERSION)\"
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
LDFLAGS = -lwiringPi `mysql_config --libs`
OBJ = main.o dht22.o
OBJ = main.o dht22.o sendmysql.o
dht22: $(OBJ)
$(CC) $(CFLAGS) -o dht22 $(OBJ) $(LDFLAGS)