Add database API
This commit is contained in:
11
Makefile
11
Makefile
@@ -2,13 +2,13 @@
|
||||
# Single lora testing app
|
||||
|
||||
CC=g++
|
||||
CFLAGS=-c -Wall `pkg-config --cflags 'libprotobuf-c >= 1.0.0'`
|
||||
LIBS=-lwiringPi -lprotobuf-c
|
||||
CFLAGS=-c -Wall `pkg-config --cflags sqlite3 'libprotobuf-c >= 1.0.0'`
|
||||
LIBS=-lwiringPi -lprotobuf-c -lsqlite3
|
||||
|
||||
all: dragino_lora_app
|
||||
|
||||
dragino_lora_app: main.o protobuf.o message.pb-c.o
|
||||
$(CC) main.o protobuf.o message.pb-c.o $(LIBS) -o dragino_lora_app
|
||||
dragino_lora_app: main.o protobuf.o message.pb-c.o database.o
|
||||
$(CC) main.o protobuf.o database.o message.pb-c.o $(LIBS) -o dragino_lora_app
|
||||
|
||||
main.o: main.c protobuf.h
|
||||
$(CC) $(CFLAGS) main.c
|
||||
@@ -18,6 +18,9 @@ protobuf.o: message.pb-c.h protobuf.c protobuf.h
|
||||
|
||||
protobuf.h: message.pb-c.h
|
||||
|
||||
database.o: database.c database.h
|
||||
$(CC) $(CFLAGS) database.c -o database.o
|
||||
|
||||
message.pb-c.o: message.pb-c.h message.pb-c.c
|
||||
$(CC) $(CFLAGS) message.pb-c.c -o message.pb-c.o
|
||||
|
||||
|
||||
Reference in New Issue
Block a user