FreeCalypso > hg > fc-sim-tools
annotate serial/Makefile @ 41:5ee00413b8af
serial: beginning of fcsim-serial-be
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 20 Mar 2021 20:53:51 +0000 |
parents | 8f505d413815 |
children | 6cc3eea720cb |
rev | line source |
---|---|
38
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
41
5ee00413b8af
serial: beginning of fcsim-serial-be
Mychaela Falconia <falcon@freecalypso.org>
parents:
40
diff
changeset
|
3 PROGS= fcsim-serial-atr fcsim-serial-be |
38
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 INSTALL_PREFIX= /opt/freecalypso |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 INSTBIN=${INSTALL_PREFIX}/bin |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
40
8f505d413815
serial: full baud/spenh argument parsing implemented
Mychaela Falconia <falcon@freecalypso.org>
parents:
38
diff
changeset
|
9 ATR_OBJS= atrmain.o baud_parse.o collect_atr.o invtable.o serport.o |
41
5ee00413b8af
serial: beginning of fcsim-serial-be
Mychaela Falconia <falcon@freecalypso.org>
parents:
40
diff
changeset
|
10 MAIN_OBJS= baud_parse.o collect_atr.o invtable.o main.o serport.o xmit.o |
38
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 all: ${PROGS} |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 fcsim-serial-atr: ${ATR_OBJS} |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 ${CC} ${CFLAGS} -o $@ ${ATR_OBJS} |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
41
5ee00413b8af
serial: beginning of fcsim-serial-be
Mychaela Falconia <falcon@freecalypso.org>
parents:
40
diff
changeset
|
17 fcsim-serial-be: ${MAIN_OBJS} |
5ee00413b8af
serial: beginning of fcsim-serial-be
Mychaela Falconia <falcon@freecalypso.org>
parents:
40
diff
changeset
|
18 ${CC} ${CFLAGS} -o $@ ${MAIN_OBJS} |
5ee00413b8af
serial: beginning of fcsim-serial-be
Mychaela Falconia <falcon@freecalypso.org>
parents:
40
diff
changeset
|
19 |
38
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 install: |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 mkdir -p ${INSTBIN} |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 install -c ${PROGS} ${INSTBIN} |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 clean: |
1d96f3b4f155
serial: started with fcsim-serial-atr
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 rm -f ${PROGS} *.o |