FreeCalypso > hg > fc-am-toolkit
annotate bootutil/Makefile @ 14:09c18549921b
add install of bootutil
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 10 Jun 2023 05:09:38 +0000 |
parents | fe5f7ba7f154 |
children | 36e65605d16a |
rev | line source |
---|---|
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 PROGS= c139-analyze-boot |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 C139ANB_OBJS= c11x_lockable.o c11x_nolock.o c139_lockable.o c139_main.o \ |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 c139_nolock.o do_match.o fc_patched_boot.o |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
14
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
8 INSTALL_PREFIX= /opt/freecalypso |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
9 |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
10 INSTBIN=${INSTALL_PREFIX}/bin |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
11 |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 all: ${PROGS} |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 c139-analyze-boot: ${C139ANB_OBJS} |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 ${CC} ${CFLAGS} -o $@ ${C139ANB_OBJS} |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 c11x_lockable.o: ../bootmatch/c11x_lockable.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 c11x_nolock.o: ../bootmatch/c11x_nolock.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 c139_lockable.o: ../bootmatch/c139_lockable.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 c139_nolock.o: ../bootmatch/c139_nolock.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 fc_patched_boot.o: ../bootmatch/fc_patched_boot.c |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 ${CC} ${CFLAGS} -c -o $@ $< |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 |
14
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
32 install: |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
33 mkdir -p ${INSTBIN} |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
34 install -c ${PROGS} ${INSTBIN} |
09c18549921b
add install of bootutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
35 |
12
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 clean: |
fe5f7ba7f154
c139-analyze-boot utility put together, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 rm -f *.o ${PROGS} |