annotate rvinterf/rvtat/Makefile @ 470:1d5bd9a06781

rvinterf tree Makefiles: split CPPFLAGS from CFLAGS This change is in preparation for allowing CFLAGS to be overridden by users and package builders.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 12 Feb 2019 00:00:18 +0000
parents ab8fb95a28da
children 90d7c360a614
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
346
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
470
1d5bd9a06781 rvinterf tree Makefiles: split CPPFLAGS from CFLAGS
Mychaela Falconia <falcon@freecalypso.org>
parents: 421
diff changeset
2 CFLAGS= -O2
1d5bd9a06781 rvinterf tree Makefiles: split CPPFLAGS from CFLAGS
Mychaela Falconia <falcon@freecalypso.org>
parents: 421
diff changeset
3 CPPFLAGS=-I../include
346
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 PROG= fcup-rvtat
421
ab8fb95a28da rvinterf/rvtat converted to use libinterf
Mychaela Falconia <falcon@freecalypso.org>
parents: 346
diff changeset
5 OBJS= interf.o main.o
ab8fb95a28da rvinterf/rvtat converted to use libinterf
Mychaela Falconia <falcon@freecalypso.org>
parents: 346
diff changeset
6 LIBS= ../libinterf/libinterf.a
346
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 INSTBIN=/opt/freecalypso/bin
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 all: ${PROG}
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
421
ab8fb95a28da rvinterf/rvtat converted to use libinterf
Mychaela Falconia <falcon@freecalypso.org>
parents: 346
diff changeset
11 ${PROG}: ${OBJS} ${LIBS}
ab8fb95a28da rvinterf/rvtat converted to use libinterf
Mychaela Falconia <falcon@freecalypso.org>
parents: 346
diff changeset
12 ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS}
346
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 install: ${PROG}
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 mkdir -p ${INSTBIN}
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 install -c ${PROG} ${INSTBIN}
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 clean:
99471c57155a fcup-rvtat program written, compiles
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 rm -f *.o *.out *errs ${PROG}