2016-10-04 10:24:34 -04:00
|
|
|
SRC = util.c irmc.c cwprotocol.c beep.c
|
2015-01-03 16:06:10 -05:00
|
|
|
OBJ = ${SRC:.c=.o}
|
2016-10-03 10:13:59 -04:00
|
|
|
LDFLAGS = -lportaudio -lpthread -lm
|
2016-10-03 11:08:09 -04:00
|
|
|
CFLAGS = -Wall -Wno-format-zero-length -Wno-unused-function
|
2015-01-03 16:06:10 -05:00
|
|
|
INSTALLDIR = ${HOME}/bin
|
|
|
|
|
|
|
|
all: options irmc
|
|
|
|
|
|
|
|
options:
|
|
|
|
@echo irmc build options:
|
|
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
|
|
@echo "CC = ${CC}"
|
|
|
|
@echo "INSTALLDIR = ${INSTALLDIR}"
|
|
|
|
|
2016-09-24 10:55:57 -04:00
|
|
|
.c.o:
|
2015-01-03 16:06:10 -05:00
|
|
|
@echo CC $<
|
|
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
|
|
|
|
irmc: ${OBJ}
|
|
|
|
@echo CC -o $@
|
|
|
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
|
2015-02-07 15:23:58 -05:00
|
|
|
java:
|
|
|
|
java -jar test/MorseKOB.jar
|
2015-01-03 16:06:10 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo cleaning
|
|
|
|
@rm -f irmc irmc.core ${OBJ}
|
|
|
|
install: irmc
|
|
|
|
cp irmc ${INSTALLDIR}
|