annotate libserial-orig/Makefile @ 561:392525355ee7

loadtools/scripts: gtm900.config renamed to gen4.config It turns out that a GTM900 variant exists with 8 MiB flash, thus -h gen8 needs to be used for GTM900 modules as the general case, and the old -h gtm900 config is best renamed to -h gen4, although not currently official for any actual target.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 30 Jan 2020 07:10:20 +0000
parents d27a89068280
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
248
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
252
d27a89068280 set_serial_nonblock() added to libserial
Mychaela Falconia <falcon@freecalypso.org>
parents: 250
diff changeset
3 OBJS= baudtab.o nonblock.o openport.o setbaud.o setbyname.o
248
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 LIB= libserial.a
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 all: ${LIB}
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 ${LIB}: ${OBJS}
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 ar rcu $@ ${OBJS}
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 ranlib $@
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 clean:
cb1ba53a1106 beginning of factored-out libserial
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 rm -f *.[oa] errs