GNUmakefile
619 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!smake
#
# $Revision: 1.4 $
#
include ./include/PRdefs
CC=$(HOST_CC)
GCINCS=-D_LANGUAGE_C -I../libbbc/include -I../libbbc/include/PR -DBBC_MUX
GLDOPTS=
LCOPTS += -Wall
#VPATH=../../tools/gload
TARGETS = libbbcr.a
CFILES = bbcr.c
default: $(TARGETS)
include ./include/PRrules
exports install: default
$(INSTALL) -m 444 -F /usr/lib $(TARGETS) $(PLITAB)
headers:
# build the bbcr lib;
libbbcr.a: $(OBJECTS)
ar rc $@ $(OBJECTS)
# build the test program;
bbcr_test: bbcr_test.c libbbcr.a
cc -O -o bbcr_test bbcr_test.c libbbcr.a
# build the ecc table generation tool;
mkecc: mkecc.c
cc -o mkecc mkecc.c