refactoring

This commit is contained in:
2019-10-04 16:35:36 +02:00
parent 86f89f2f8d
commit de23e55290
5 changed files with 203 additions and 0 deletions

17
src/Makefile Normal file
View File

@ -0,0 +1,17 @@
CC=gcc
CFLAGS=-Wall
LDFLAGS=-lwiringPi
counter: counter.o LS7366R.o
$(CC) -o $@ $(LDFLAGS) $^
.c.o:
$(CC) $(CFLAGS) -c $<
.PHONY: all
all: counter
.PHONY: clean
clean:
-rm -f *.o counter