32 lines
588 B
Makefile
32 lines
588 B
Makefile
SRC = irmc.c cwprotocol.c beep.c
|
|
OBJ = ${SRC:.c=.o}
|
|
LDFLAGS = -lportaudio -lpthread -lm
|
|
CFLAGS = -Wall -Wno-format-zero-length -Wunused-function
|
|
INSTALLDIR = ${HOME}/bin
|
|
|
|
all: options irmc
|
|
|
|
options:
|
|
@echo irmc build options:
|
|
@echo "CFLAGS = ${CFLAGS}"
|
|
@echo "LDFLAGS = ${LDFLAGS}"
|
|
@echo "CC = ${CC}"
|
|
@echo "INSTALLDIR = ${INSTALLDIR}"
|
|
|
|
.c.o:
|
|
@echo CC $<
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
irmc: ${OBJ}
|
|
@echo CC -o $@
|
|
@${CC} -o $@ ${OBJ} ${LDFLAGS}
|
|
|
|
java:
|
|
java -jar test/MorseKOB.jar
|
|
|
|
clean:
|
|
@echo cleaning
|
|
@rm -f irmc irmc.core ${OBJ}
|
|
install: irmc
|
|
cp irmc ${INSTALLDIR}
|