Makefile
821 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
43
44
45
46
#
PRDEPTH = ../../..
include $(PRDEPTH)/PRdefs
IOSIMLIB = ../libiosim.a
TARGETS = mi_test mi_random mi_rng mi_intr_test
CFILES = mi_test.c nvram_test.c
#
# C Flags
#
LCINCS = -I. -I$(ROOT)/usr/include -I.. -D_LANGUAGE_C
# possible -D defines: DEBUG, CHATTY
LCOPTS = -g -DDEBUG -DBCP_IPC -Wall
LCFLAGS = $(LCOPTS) $(LCINCS)
#
# Linker Flags
#
LLDLIBS = $(IOSIMLIB)
default: $(TARGETS)
include $(COMMONRULES)
mi_test: main.o $(OBJECTS) $(IOSIMLIB)
$(HOST_CC) -o $@ $^ $(LLDLIBS)
nvram_test: $(OBJECTS) $(IOSIMLIB)
$(HOST_CC) -o $@ $^ $(LLDLIBS)
mi_random: mi_random.o mi_test.o nvram_test.o $(IOSIMLIB)
$(HOST_CC) -o $@ $^ $(LLDLIBS)
mi_rng: rand_test.o
$(HOST_CC) -o $@ $^ $(LLDLIBS)
mi_intr_test: mi_intr_test.o $(OBJECTS) $(IOSIMLIB)
$(HOST_CC) -o $@ $^ $(LLDLIBS)
.c.o:
$(HOST_CC) $(LCFLAGS) -c $<