cpp-mfrc522/Makefile

11 lines
165 B
Makefile
Raw Permalink Normal View History

2018-06-17 22:55:49 +00:00
CC_FLAGS=-I. -Os -g
LD_FLAGS=
LIBS=-lstdc++
mrfc522: src/main.o src/mfrc522.o src/spi.o
gcc ${LD_FLAGS} -o $@ $^ ${LIBS}
%.o: %.cpp
gcc -c ${CC_FLAGS} -o $@ $<