6
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 SUBDIR= eeproms fteeprom
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 INSTALL_PREFIX= /opt/freecalypso
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 all: ${SUBDIR}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 ${SUBDIR}: FRC
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 cd $@; ${MAKE} ${MFLAGS} CC=${CC} CFLAGS="${CFLAGS}"
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 clean: FRC
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 rm -f a.out core errs
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 install: FRC
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 mkdir -p ${INSTALL_PREFIX}
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} \
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 INSTALL_PREFIX=${INSTALL_PREFIX} install); done
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20
|
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 FRC:
|