FreeCalypso > hg > fc-usbser-tools
comparison fteeprom/Makefile @ 16:1d76deae1e74
fteeprom-read: convert to new local libs
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 07 Sep 2023 08:56:57 +0000 |
| parents | b2c891299e83 |
| children | 43b8e88dae02 |
comparison
equal
deleted
inserted
replaced
| 15:e1629a7c8ae3 | 16:1d76deae1e74 |
|---|---|
| 1 CC= gcc | 1 CC= gcc |
| 2 CFLAGS= -O2 | 2 CFLAGS= -O2 |
| 3 PROGS= ftee-gen2232c ftee-gen2232h ftee-gen232r ftee-mkblank fteeprom-erase \ | 3 PROGS= ftee-gen2232c ftee-gen2232h ftee-gen232r ftee-mkblank fteeprom-erase \ |
| 4 fteeprom-prog fteeprom-read | 4 fteeprom-prog fteeprom-read |
| 5 LIBS= ../libftmini/libftmini.a ../libuwrap/libuwrap.a | |
| 5 | 6 |
| 6 INSTALL_PREFIX= /opt/freecalypso | 7 INSTALL_PREFIX= /opt/freecalypso |
| 7 | 8 |
| 8 INSTBIN=${INSTALL_PREFIX}/bin | 9 INSTBIN=${INSTALL_PREFIX}/bin |
| 9 | 10 |
| 25 ${CC} ${CFLAGS} -o $@ $@.c -lftdi | 26 ${CC} ${CFLAGS} -o $@ $@.c -lftdi |
| 26 | 27 |
| 27 fteeprom-prog: fteeprom-prog.c | 28 fteeprom-prog: fteeprom-prog.c |
| 28 ${CC} ${CFLAGS} -o $@ $@.c -lftdi | 29 ${CC} ${CFLAGS} -o $@ $@.c -lftdi |
| 29 | 30 |
| 30 fteeprom-read: fteeprom-read.c | 31 fteeprom-read: fteeprom-read.o ${LIBS} |
| 31 ${CC} ${CFLAGS} -o $@ $@.c -lftdi | 32 ${CC} ${CFLAGS} -o $@ $@.o ${LIBS} -lusb |
| 32 | 33 |
| 33 install: | 34 install: |
| 34 mkdir -p ${INSTBIN} | 35 mkdir -p ${INSTBIN} |
| 35 install -c ${PROGS} ${INSTBIN} | 36 install -c ${PROGS} ${INSTBIN} |
| 36 | 37 |
