1*45818ee1SMatthew Ahrens# 2*45818ee1SMatthew Ahrens# CDDL HEADER START 3*45818ee1SMatthew Ahrens# 4*45818ee1SMatthew Ahrens# The contents of this file are subject to the terms of the 5*45818ee1SMatthew Ahrens# Common Development and Distribution License (the "License"). 6*45818ee1SMatthew Ahrens# You may not use this file except in compliance with the License. 7*45818ee1SMatthew Ahrens# 8*45818ee1SMatthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*45818ee1SMatthew Ahrens# or http://opensource.org/licenses/CDDL-1.0. 10*45818ee1SMatthew Ahrens# See the License for the specific language governing permissions 11*45818ee1SMatthew Ahrens# and limitations under the License. 12*45818ee1SMatthew Ahrens# 13*45818ee1SMatthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each 14*45818ee1SMatthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*45818ee1SMatthew Ahrens# If applicable, add the following below this CDDL HEADER, with the 16*45818ee1SMatthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying 17*45818ee1SMatthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner] 18*45818ee1SMatthew Ahrens# 19*45818ee1SMatthew Ahrens# CDDL HEADER END 20*45818ee1SMatthew Ahrens# 21*45818ee1SMatthew Ahrens# 22*45818ee1SMatthew Ahrens# Copyright 2013 Saso Kiselkov. All rights reserved. 23*45818ee1SMatthew Ahrens# 24*45818ee1SMatthew Ahrens# 25*45818ee1SMatthew Ahrens# This makefile drives the production of the edonr kernel module. 26*45818ee1SMatthew Ahrens# 27*45818ee1SMatthew Ahrens# intel architecture dependent 28*45818ee1SMatthew Ahrens# 29*45818ee1SMatthew Ahrens 30*45818ee1SMatthew Ahrens# 31*45818ee1SMatthew Ahrens# Path to the base of the uts directory tree (usually /usr/src/uts). 32*45818ee1SMatthew Ahrens# 33*45818ee1SMatthew AhrensUTSBASE = ../.. 34*45818ee1SMatthew AhrensCOMDIR = $(COMMONBASE)/crypto 35*45818ee1SMatthew Ahrens 36*45818ee1SMatthew Ahrens# 37*45818ee1SMatthew Ahrens# Define the module and object file sets. 38*45818ee1SMatthew Ahrens# 39*45818ee1SMatthew AhrensMODULE = edonr 40*45818ee1SMatthew AhrensOBJECTS = $(EDONR_OBJS:%=$(OBJS_DIR)/%) 41*45818ee1SMatthew AhrensLINTS = $(EDONR_OBJS:%.o=$(LINTS_DIR)/%.ln) 42*45818ee1SMatthew AhrensROOTMODULE = $(ROOT_CRYPTO_DIR)/$(MODULE) 43*45818ee1SMatthew AhrensROOTLINK = $(ROOT_MISC_DIR)/$(MODULE) 44*45818ee1SMatthew Ahrens 45*45818ee1SMatthew Ahrens# 46*45818ee1SMatthew Ahrens# Include common rules. 47*45818ee1SMatthew Ahrens# 48*45818ee1SMatthew Ahrensinclude $(UTSBASE)/intel/Makefile.intel 49*45818ee1SMatthew Ahrens 50*45818ee1SMatthew Ahrens# 51*45818ee1SMatthew Ahrens# Define targets 52*45818ee1SMatthew Ahrens# 53*45818ee1SMatthew AhrensALL_TARGET = $(BINARY) 54*45818ee1SMatthew AhrensLINT_TARGET = $(MODULE).lint 55*45818ee1SMatthew AhrensINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) 56*45818ee1SMatthew Ahrens 57*45818ee1SMatthew Ahrens# 58*45818ee1SMatthew Ahrens# Linkage dependencies 59*45818ee1SMatthew Ahrens# 60*45818ee1SMatthew AhrensLDFLAGS += -dy -Nmisc/kcf 61*45818ee1SMatthew Ahrens 62*45818ee1SMatthew AhrensCFLAGS += -I$(COMDIR) 63*45818ee1SMatthew AhrensLINTFLAGS += -I$(COMDIR) 64*45818ee1SMatthew Ahrens 65*45818ee1SMatthew Ahrens# 66*45818ee1SMatthew Ahrens# Default build targets. 67*45818ee1SMatthew Ahrens# 68*45818ee1SMatthew Ahrens.KEEP_STATE: 69*45818ee1SMatthew Ahrens 70*45818ee1SMatthew Ahrensdef: $(DEF_DEPS) 71*45818ee1SMatthew Ahrens 72*45818ee1SMatthew Ahrensall: $(ALL_DEPS) 73*45818ee1SMatthew Ahrens 74*45818ee1SMatthew Ahrensclean: $(CLEAN_DEPS) 75*45818ee1SMatthew Ahrens 76*45818ee1SMatthew Ahrensclobber: $(CLOBBER_DEPS) 77*45818ee1SMatthew Ahrens 78*45818ee1SMatthew Ahrenslint: $(LINT_DEPS) 79*45818ee1SMatthew Ahrens 80*45818ee1SMatthew Ahrensmodlintlib: $(MODLINTLIB_DEPS) 81*45818ee1SMatthew Ahrens 82*45818ee1SMatthew Ahrensclean.lint: $(CLEAN_LINT_DEPS) 83*45818ee1SMatthew Ahrens 84*45818ee1SMatthew Ahrensinstall: $(INSTALL_DEPS) 85*45818ee1SMatthew Ahrens 86*45818ee1SMatthew Ahrens$(ROOTLINK): $(ROOT_MISC_DIR) $(ROOTMODULE) 87*45818ee1SMatthew Ahrens -$(RM) $@; ln $(ROOTMODULE) $@ 88*45818ee1SMatthew Ahrens 89*45818ee1SMatthew Ahrens# 90*45818ee1SMatthew Ahrens# Include common targets. 91*45818ee1SMatthew Ahrens# 92*45818ee1SMatthew Ahrensinclude $(UTSBASE)/intel/Makefile.targ 93