irmc/src/Makefile

32 lines
547 B
Makefile
Raw Normal View History

2016-10-03 10:13:59 -04:00
SRC = irmc.c cwprotocol.c beep.c
OBJ = ${SRC:.c=.o}
2016-10-03 10:13:59 -04:00
LDFLAGS = -lportaudio -lpthread -lm
CFLAGS = -Wall
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}