FreeCalypso > hg > fc-usbser-tools
annotate duart28/Makefile @ 105:1e820ed0904e
Installed-binaries: list of binaries installed by this package
I am establishing a new convention for all FreeCalypso tools, across
different packages and source repositories: each FC tools package
will have a file name Installed-binaries listing all user-invokable
binaries that package installs in /opt/freecalypso/bin. These files
are to serve as an aid to users and distro package maintainers who
prefer to not add /opt/freecalypso/bin to their PATH. The alternative
to adding this directory to PATH is to create a symlink for every
installed binary in some standard location such as /usr/bin or
/usr/local/bin, pointing to the actual binary in /opt/freecalypso/bin;
having a list of all FC-installed binaries in a standardized format
will allow this process to be automated.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 29 Sep 2023 19:42:53 +0000 |
parents | 530ec3792de8 |
children |
rev | line source |
---|---|
0
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
27
2413a54a1bfc
fc-duart28-conf started
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
3 PROG= fc-duart28-conf |
31
530ec3792de8
fc-duart28-conf: implement set command
Mychaela Falconia <falcon@freecalypso.org>
parents:
29
diff
changeset
|
4 OBJS= eeprom_rd.o eeprom_wr.o find_usb.o main.o |
16
1d76deae1e74
fteeprom-read: convert to new local libs
Mychaela Falconia <falcon@freecalypso.org>
parents:
7
diff
changeset
|
5 LIBS= ../libftmini/libftmini.a ../libuwrap/libuwrap.a |
4
2e84619e7422
fteeprom/Makefile: implement INSTALL_PREFIX
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
6 |
2e84619e7422
fteeprom/Makefile: implement INSTALL_PREFIX
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
7 INSTALL_PREFIX= /opt/freecalypso |
2e84619e7422
fteeprom/Makefile: implement INSTALL_PREFIX
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
8 |
2e84619e7422
fteeprom/Makefile: implement INSTALL_PREFIX
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
9 INSTBIN=${INSTALL_PREFIX}/bin |
0
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
27
2413a54a1bfc
fc-duart28-conf started
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
11 all: ${PROG} |
0
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
27
2413a54a1bfc
fc-duart28-conf started
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
13 ${PROG}: ${OBJS} ${LIBS} |
2413a54a1bfc
fc-duart28-conf started
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
14 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} -lusb |
0
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 |
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 install: |
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 mkdir -p ${INSTBIN} |
27
2413a54a1bfc
fc-duart28-conf started
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
18 install -c ${PROG} ${INSTBIN} |
0
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
11b8a30333b3
fteeprom: initial import from freecalypso-hwlab
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 clean: |
27
2413a54a1bfc
fc-duart28-conf started
Mychaela Falconia <falcon@freecalypso.org>
parents:
21
diff
changeset
|
21 rm -f ${PROG} *.o *errs *.out |