GNUmakefile
1.18 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
61
#!smake
#
# Makefile for BB USB library subdirectory
#
SUBDIR=usb
COMMONPREF=$(SUBDIR)
SUBDIRS=arc
PRDEPTH=$(ROOT)/PR
include $(PRDEPTH)/PRdefs
LIBDEPTH=$(ROOT)/PR/libultra
include $(LIBDEPTH)/libdefs
sinclude ../companydefs
sinclude locdefs
#
# Set these to control which drivers get included.
# Note that for now, it only makes sense to specify
# one slave device.
#
ifdef MANUFACTURE_TEST
#HOSTDEVS = -DUSB_HOST -DUSB_RDB_HOST
HOSTDEVS = -DUSB_HOST -DUSB_ECHO_HOST
SLAVEDEVS = -DUSB_ECHO_DEVICE
else
SLAVEDEVS = -DUSB_RDBS_DEVICE
endif
#LCOPTS = -non_shared -mips2 -fullwarn -G 0 -wlint,-f -woff 819,826,852
LCOPTS = -non_shared -mips2 -Wall -G 0 $(HOSTDEVS) $(SLAVEDEVS)
LCINCS = -I. -I$(LIBDEPTH)/include -I$(PRDEPTH)/include
CFILES = usbinit.c usbquery.c usbhandle.c usbread.c usbwrite.c usbhw.c \
usbhost.c usbdevice.c echo_h.c echo_d.c devreqst.c \
rdb_host.c rdb_slave.c
LDIRT =
sinclude locdefs
default: $(COMMONPREF)default
exports: $(COMMONPREF)exports
install: default
$(COMMONPREF)exports $(COMMONPREF)default clean clobber: $(_FORCE)
$(SUBDIRS_MAKERULE)
include $(LIBDEPTH)/librules
include $(PRDEPTH)/PRrules
.PHONY: tags
tags: $(_FORCE)
ctags *.[ch] arc/*.[ch]