raspi
This commit is contained in:
parent
1145e2769e
commit
af81f9a084
@ -1,6 +1,6 @@
|
|||||||
SRC = irmc.c cwprotocol.c beep.c util.c
|
SRC = irmc.c cwprotocol.c beep.c util.c
|
||||||
OBJ = ${SRC:.c=.o}
|
OBJ = ${SRC:.c=.o}
|
||||||
LDFLAGS = -lportaudio -lpthread -lm -lwiringPi
|
LDFLAGS = -lportaudio -lpthread -lm
|
||||||
CFLAGS = -Wall -Wno-format-zero-length
|
CFLAGS = -Wall -Wno-format-zero-length
|
||||||
INSTALLDIR = ${HOME}/bin
|
INSTALLDIR = ${HOME}/bin
|
||||||
|
|
||||||
@ -21,6 +21,9 @@ irmc: ${OBJ}
|
|||||||
@echo CC -o $@
|
@echo CC -o $@
|
||||||
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
||||||
|
|
||||||
|
raspi: ${OBJ}
|
||||||
|
@${CC} -o irmc ${OBJ} ${LDFLAGS} -lwiringPi
|
||||||
|
|
||||||
java:
|
java:
|
||||||
java -jar test/MorseKOB.jar
|
java -jar test/MorseKOB.jar
|
||||||
|
|
||||||
|
@ -24,12 +24,10 @@
|
|||||||
#include "beep.h"
|
#include "beep.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
|
||||||
// http://raspberrypiguide.de/howtos/raspberry-pi-gpio-how-to/
|
|
||||||
#define RASPI
|
#define RASPI
|
||||||
|
// http://raspberrypiguide.de/howtos/raspberry-pi-gpio-how-to/
|
||||||
#ifdef RASPI
|
#ifdef RASPI
|
||||||
#include <wiringPi.h>
|
#include <wiringPi.h>
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user