Jorgen Lundman | 4d3c95f | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2012 |
| 3 | # Jorgen Lundman <lundman at lundman.net> |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Jorgen Lundman | 4d3c95f | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB = $(obj)libzfs.o |
| 11 | |
| 12 | AOBJS = |
| 13 | COBJS-$(CONFIG_CMD_ZFS) := dev.o zfs.o zfs_fletcher.o zfs_sha256.o zfs_lzjb.o |
| 14 | |
| 15 | SRCS := $(AOBJS:.o=.S) $(COBJS-y:.o=.c) |
| 16 | OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS-y)) |
| 17 | |
| 18 | |
| 19 | all: $(LIB) $(AOBJS) |
| 20 | |
| 21 | $(LIB): $(obj).depend $(OBJS) |
| 22 | $(call cmd_link_o_target, $(OBJS)) |
| 23 | |
| 24 | ######################################################################### |
| 25 | |
| 26 | # defines $(obj).depend target |
| 27 | include $(SRCTREE)/rules.mk |
| 28 | |
| 29 | sinclude $(obj).depend |
| 30 | |
| 31 | ######################################################################### |