GNUmakefile 2.49 KB
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)