GNUmakefile 1.18 KB
#!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]