irmc/Makefile
2015-01-03 22:06:10 +01:00

33 lines
555 B
Makefile

SRC = irmc.c sound.c
OBJ = ${SRC:.c=.o}
LDFLAGS = -lm -lossaudio
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}"
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
irmc: ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${LDFLAGS}
hex: ${OBJ}
@echo avr-gcc -o $@
avr-gcc -o $@ ${OBJ} ${LDFLAGS}
clean:
@echo cleaning
@rm -f irmc irmc.core ${OBJ}
install: irmc
cp irmc ${INSTALLDIR}