17 lines
230 B
Makefile
17 lines
230 B
Makefile
BIN=bin
|
|
|
|
all: dirs command readref
|
|
|
|
command:
|
|
gcc -o ${BIN}/command network.c command.c
|
|
|
|
readref:
|
|
gcc -o ${BIN}/readref network.c mqtt.c -lmosquitto readref.c -lm
|
|
|
|
.PHONY: clean dirs
|
|
clean:
|
|
rm -rf ${BIN}
|
|
|
|
dirs:
|
|
mkdir -p ${BIN}
|