GNUmakefile
2.49 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
include $(ROOT)/usr/include/make/PRdefs
OPTIMIZER = -g -O2
TARGETS = looptest initloop loop1 copyloop opentest cardfull \
maxfiles alloctest sksatest readfile mfgtest timestress
VERSION = $(shell date "+%D %T")
LCINCS = -I. -I.. -I../../../lib/libbbc -I$(ROOT)/usr/include/PR
LCOPTS = -mips2 -Wall -non_shared -G 0 -g -DVERSION="\"$(VERSION)\"" -DBBC_DEBUG
LASINCS = $(LCINCS)
LASOPTS = -non_shared -G 0
HOST_LDLIBS += -lbbc -lbbcr -lcryptoX86
HOST_CFLAGS += $(LCINCS) -I$(ROOT)/host_include
default: $(TARGETS)
include $(COMMONRULES)
looptest: looptest.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -I$(ROOT)/host_include -o looptest looptest.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
initloop: initloop.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -I$(ROOT)/host_include -o initloop initloop.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
loop1: loop1.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -I$(ROOT)/host_include -o loop1 loop1.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
copyloop: copyloop.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -I$(ROOT)/host_include -o copyloop copyloop.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
opentest: opentest.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o opentest opentest.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
cardfull: cardfull.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o cardfull cardfull.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
maxfiles: maxfiles.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o maxfiles maxfiles.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
alloctest: alloctest.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o alloctest alloctest.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
sksatest: sksatest.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o sksatest sksatest.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
readfile: readfile.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o readfile readfile.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
bbcard_rw: bbcard_rw.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o bbcard_rw bbcard_rw.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
mfgtest: mfgtest.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o mfgtest mfgtest.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)
timestress: timestress.c
$(HOST_CC) -Wall -g -D_LANGUAGE_C $(HOST_CFLAGS) -o timestress timestress.c -L$(ROOT)/host_lib -L$(ROOT)/usr/lib $(HOST_LDLIBS)