###################################################
# Makefile for the Synopsys Mobile Storage drivers
###################################################

KERNELDIR=../../linux
PWD:=$(shell pwd)
TARGET_DIR := $(BUILD_TOPDIR)/output/staging

all: install
#	@make -C $(KERNELDIR) CONFIG_SYNOPMOBSTORHOST=m CONFIG_SYNOPMOBSTORBLOCK=m M=$(PWD) modules

install:
	@cp *.ko  $(TARGET_DIR)/lib/modules
	@cp resources/* $(TARGET_DIR)/etc/init.d

clean:
	@rm -rf *.o
	@rm -rf *.mod.*
	@rm -rf .*.cmd
	@rm -rf .tmp*
	@rm -f  modules.order
	@rm -f Module.symvers

