irmc/src/Makefile

32 lines
598 B
Makefile
Raw Normal View History

2016-10-04 10:24:34 -04:00
SRC = util.c irmc.c cwprotocol.c beep.c
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
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:
@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
clean:
@echo cleaning
@rm -f irmc irmc.core ${OBJ}
install: irmc
cp irmc ${INSTALLDIR}