NEW: #1 Mysql support, makefile and readme update, sensor struct update
This commit is contained in:
6
makefile
6
makefile
@@ -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)
|
||||
|
Reference in New Issue
Block a user