#
# Makefile pour usb host  (golinux version)
#

TOPDIR:=$(shell pwd)/..

include $(TOPDIR)/Rules_GoLinux.make

# Static configuration for golinux. no Menuconfig like global configuration available
subdir	+= show_usb
subdir 	+= usbmgr
subdir 	+= lpdsrv
subdir 	+= storage
#subdir-$(CONFIG_LIBUSB) 	+= libusb-0.1.7
#subdir-$(CONFIG_FTDI)  		+= ftdi
#subdir-$(CONFIG_TPE)    	+= tpe
#subdir-$(CONFIG_P910ND) 	+= p910nd-0.7

SUBDIRS := $(subdir)

all:
	echo "CC=$(CC)"

	@$(make_subdirs)

release: 
	@$(make_subdirs)
	install -d $(ROOT_FS_DIR)/etc/init.d
	install -m 755 usb-host $(ROOT_FS_DIR)/etc/init.d/usb-host
	install -m 755 print_server_script $(ROOT_FS_DIR)/etc/init.d/print_server

clean: 
	@$(make_subdirs)
