FreeCalypso > hg > fc-sim-sniff
comparison sw/sniff-rx/Makefile @ 32:fb9c03515832
sw/sniff-rx/Makefile: add install
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 29 Aug 2023 21:44:22 +0000 |
parents | b112c2df6c43 |
children | 7c9bf72d460f |
comparison
equal
deleted
inserted
replaced
31:ab37fcb71744 | 32:fb9c03515832 |
---|---|
2 CFLAGS= -O2 | 2 CFLAGS= -O2 |
3 PROG= simtrace3-sniff-rx | 3 PROG= simtrace3-sniff-rx |
4 OBJS= byteproc.o datetime.o initflush.o main.o mainloop.o | 4 OBJS= byteproc.o datetime.o initflush.o main.o mainloop.o |
5 LIBS= ../libserial/libserial.a | 5 LIBS= ../libserial/libserial.a |
6 | 6 |
7 INSTALL_PREFIX= /opt/freecalypso | |
8 | |
9 INSTBIN=${INSTALL_PREFIX}/bin | |
10 | |
7 all: ${PROG} | 11 all: ${PROG} |
8 | 12 |
9 ${PROG}: ${OBJS} ${LIBS} | 13 ${PROG}: ${OBJS} ${LIBS} |
10 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} | 14 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} |
11 | 15 |
16 install: | |
17 mkdir -p ${INSTBIN} | |
18 install -c ${PROG} ${INSTBIN} | |
19 | |
12 clean: | 20 clean: |
13 rm -f *.o ${PROG} | 21 rm -f *.o ${PROG} |