18 lines
177 B
Makefile

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