initial
This commit is contained in:
20
vnproglib/c/examples/sensor/Makefile
Normal file
20
vnproglib/c/examples/sensor/Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
CC = gcc
|
||||
INCLUDES = -I ../../include
|
||||
CFLAGS = -Wall
|
||||
|
||||
all: sensor
|
||||
|
||||
clean:
|
||||
rm -f main.o
|
||||
rm -f sensor
|
||||
cd ../.. && make clean
|
||||
|
||||
sensor: main.o proglib
|
||||
$(CC) -o sensor main.o -L ../../build -lvnc -lpthread
|
||||
|
||||
proglib:
|
||||
cd ../.. && make
|
||||
|
||||
main.o: main.c
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
|
||||
|
||||
Reference in New Issue
Block a user