spark_counter/rpi/Makefile

24 lines
530 B
Makefile
Raw Normal View History

2015-10-24 20:03:30 +02:00
prefix := /usr/local
# Detect the Raspberry Pi by the existence of the bcm_host.h file
BCMLOC=/opt/vc/include/bcm_host.h
ifneq ("$(wildcard $(BCMLOC))","")
# The recommended compiler flags for the Raspberry Pi
CCFLAGS=-Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s
endif
# define all programs
PROGRAM = spark_counter_receiver
2015-11-10 22:31:05 +01:00
SOURCES = ${PROGRAM:=.cpp} aes.c crc16.c
2015-10-24 20:03:30 +02:00
all: ${PROGRAM}
2015-10-24 20:03:30 +02:00
${PROGRAM}: ${SOURCES}
g++ ${CCFLAGS} -Wall -I. -lrf24-bcm -lcurl -o $@ $^
2015-10-24 20:03:30 +02:00
clean:
rm -rf $(PROGRAM)
2015-10-24 20:03:30 +02:00
.PHONY: install