Création
This commit is contained in:
21
examples/Raspberry_JSON/makefile
Normal file
21
examples/Raspberry_JSON/makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
SHELL=/bin/sh
|
||||
|
||||
CFLAGS=-DRASPBERRY_PI
|
||||
|
||||
# raspjson
|
||||
all: raspjson
|
||||
|
||||
# ===== Compile
|
||||
LibTeleinfo.o: ../../LibTeleinfo.cpp
|
||||
$(CC) $(CFLAGS) -c ../../LibTeleinfo.cpp
|
||||
|
||||
raspjson.o: raspjson.cpp
|
||||
$(CC) $(CFLAGS) -c raspjson.cpp
|
||||
|
||||
# ===== Link
|
||||
raspjson: raspjson.o LibTeleinfo.o
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o raspjson raspjson.o LibTeleinfo.o
|
||||
|
||||
clean:
|
||||
rm -f *.o raspjson
|
||||
|
||||
Reference in New Issue
Block a user