1*4d3c95f5SJorgen Lundman# 2*4d3c95f5SJorgen Lundman# (C) Copyright 2012 3*4d3c95f5SJorgen Lundman# Jorgen Lundman <lundman at lundman.net> 4*4d3c95f5SJorgen Lundman# 5*4d3c95f5SJorgen Lundman# See file CREDITS for list of people who contributed to this 6*4d3c95f5SJorgen Lundman# project. 7*4d3c95f5SJorgen Lundman# 8*4d3c95f5SJorgen Lundman# This program is free software; you can redistribute it and/or 9*4d3c95f5SJorgen Lundman# modify it under the terms of the GNU General Public License as 10*4d3c95f5SJorgen Lundman# published by the Free Software Foundation; either version 2 of 11*4d3c95f5SJorgen Lundman# the License, or (at your option) any later version. 12*4d3c95f5SJorgen Lundman# 13*4d3c95f5SJorgen Lundman# This program is distributed in the hope that it will be useful, 14*4d3c95f5SJorgen Lundman# but WITHOUT ANY WARRANTY; without even the implied warranty of 15*4d3c95f5SJorgen Lundman# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*4d3c95f5SJorgen Lundman# GNU General Public License for more details. 17*4d3c95f5SJorgen Lundman# 18*4d3c95f5SJorgen Lundman# You should have received a copy of the GNU General Public License 19*4d3c95f5SJorgen Lundman# along with this program; if not, write to the Free Software 20*4d3c95f5SJorgen Lundman# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*4d3c95f5SJorgen Lundman# MA 02111-1307 USA 22*4d3c95f5SJorgen Lundman# 23*4d3c95f5SJorgen Lundman 24*4d3c95f5SJorgen Lundmaninclude $(TOPDIR)/config.mk 25*4d3c95f5SJorgen Lundman 26*4d3c95f5SJorgen LundmanLIB = $(obj)libzfs.o 27*4d3c95f5SJorgen Lundman 28*4d3c95f5SJorgen LundmanAOBJS = 29*4d3c95f5SJorgen LundmanCOBJS-$(CONFIG_CMD_ZFS) := dev.o zfs.o zfs_fletcher.o zfs_sha256.o zfs_lzjb.o 30*4d3c95f5SJorgen Lundman 31*4d3c95f5SJorgen LundmanSRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c) 32*4d3c95f5SJorgen LundmanOBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y)) 33*4d3c95f5SJorgen Lundman 34*4d3c95f5SJorgen Lundman 35*4d3c95f5SJorgen Lundmanall: $(LIB) $(AOBJS) 36*4d3c95f5SJorgen Lundman 37*4d3c95f5SJorgen Lundman$(LIB): $(obj).depend $(OBJS) 38*4d3c95f5SJorgen Lundman $(call cmd_link_o_target, $(OBJS)) 39*4d3c95f5SJorgen Lundman 40*4d3c95f5SJorgen Lundman######################################################################### 41*4d3c95f5SJorgen Lundman 42*4d3c95f5SJorgen Lundman# defines $(obj).depend target 43*4d3c95f5SJorgen Lundmaninclude $(SRCTREE)/rules.mk 44*4d3c95f5SJorgen Lundman 45*4d3c95f5SJorgen Lundmansinclude $(obj).depend 46*4d3c95f5SJorgen Lundman 47*4d3c95f5SJorgen Lundman######################################################################### 48