1 #
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2016 Joyent, Inc.
14 #
15
16 UTSBASE = ../..
17
18 LX_CMN = $(SRC)/common/brand/lx
19
20 MODULE = lx_sysfs
21 OBJECTS = $(LX_SYS_OBJS:%=$(OBJS_DIR)/%)
22 LINTS = $(LX_SYS_OBJS:%.o=$(LINTS_DIR)/%.ln)
23 ROOTMODULE = $(USR_FS_DIR)/$(MODULE)
24
25 INC_PATH += -I$(UTSBASE)/common/brand/lx -I$(LX_CMN)
26
27 include $(UTSBASE)/intel/Makefile.intel
28
29 ALL_TARGET = $(BINARY)
30 LINT_TARGET = $(MODULE).lint
31 INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
32
33 CFLAGS += $(CCVERBOSE)
34
35 LDFLAGS += -dy -Nbrand/lx_brand -Ndrv/ip
36
37 #
38 # For now, disable these lint checks; maintainers should endeavor
39 # to investigate and remove these for maximum lint coverage.
40 # Please do not carry these forward to new Makefiles.
41 #
42 # XXX JJ
43 # LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
44 # LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
45
46 .KEEP_STATE:
47
48 def: $(DEF_DEPS)
49
50 all: $(ALL_DEPS)
51
52 clean: $(CLEAN_DEPS)
53
54 clobber: $(CLOBBER_DEPS)
55
56 lint: $(LINT_DEPS)
57
58 modlintlib: $(MODLINTLIB_DEPS)
59
60 clean.lint: $(CLEAN_LINT_DEPS)
61
62 install: $(INSTALL_DEPS)
63
64 include $(UTSBASE)/intel/Makefile.targ
65
66 include $(UTSBASE)/intel/lx_sysfs/Makefile.rules