add osx build
This commit is contained in:
parent
a4bbec6497
commit
ecce799bb7
32
Makefile.osx
Normal file
32
Makefile.osx
Normal file
@ -0,0 +1,32 @@
|
||||
SRC = irmc.c
|
||||
OBJ = ${SRC:.c=.o}
|
||||
LDFLAGS = -L/opt/local/lib -lm -loss -lportaudio -lmorse
|
||||
CFLAGS = -Wall -I/opt/local/include
|
||||
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}
|
Loading…
Reference in New Issue
Block a user