py converted to c
This commit is contained in:
17
snippets/test1/Makefile
Normal file
17
snippets/test1/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
CC=gcc
|
||||
|
||||
CFLAGS=-Wall
|
||||
LDFLAGS=-lwiringPi
|
||||
|
||||
test1: test1.o
|
||||
$(CC) -o $@ $(LDFLAGS) $^
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $<
|
||||
|
||||
.PHONY: all
|
||||
all: test1
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f *.o test1
|
Reference in New Issue
Block a user