From af81f9a0840d93c30b7116e355a358ad665eb70b Mon Sep 17 00:00:00 2001 From: Gerolf Ziegenhain Date: Tue, 4 Oct 2016 20:45:48 +0200 Subject: [PATCH] raspi --- src/Makefile | 5 ++++- src/irmc.c | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index f9c2c39..93bc529 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,6 @@ SRC = irmc.c cwprotocol.c beep.c util.c OBJ = ${SRC:.c=.o} -LDFLAGS = -lportaudio -lpthread -lm -lwiringPi +LDFLAGS = -lportaudio -lpthread -lm CFLAGS = -Wall -Wno-format-zero-length INSTALLDIR = ${HOME}/bin @@ -21,6 +21,9 @@ irmc: ${OBJ} @echo CC -o $@ @${CC} -o $@ ${OBJ} ${LDFLAGS} +raspi: ${OBJ} + @${CC} -o irmc ${OBJ} ${LDFLAGS} -lwiringPi + java: java -jar test/MorseKOB.jar diff --git a/src/irmc.c b/src/irmc.c index b8ef0ee..591a883 100644 --- a/src/irmc.c +++ b/src/irmc.c @@ -24,12 +24,10 @@ #include "beep.h" #include "util.h" - -// http://raspberrypiguide.de/howtos/raspberry-pi-gpio-how-to/ #define RASPI +// http://raspberrypiguide.de/howtos/raspberry-pi-gpio-how-to/ #ifdef RASPI #include - #endif