1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23 #
24 LIBRARY = pkcs11_tpm.a
25 VERS = .1
26
27 OBJECTS= api_interface.o \
28 apiutil.o \
29 asn1.o \
30 cert.o \
31 data_obj.o \
32 decr_mgr.o \
33 dig_mgr.o \
34 encr_mgr.o \
35 globals.o \
36 hwf_obj.o \
37 key.o \
38 key_mgr.o \
39 loadsave.o \
40 log.o \
56
57 SRCDIR= ../common
58
59 SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c)
60
61 # set signing mode
62 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
63
64 ROOTLIBDIR=$(ROOT)/usr/lib/security
65 ROOTLIBDIR64=$(ROOT)/usr/lib/security/$(MACH64)
66
67 LIBS=$(DYNLIB) $(DYNLIB64)
68
69 TSSROOT=$(ADJUNCT_PROTO)
70 TSPILIBDIR=$(TSSROOT)/usr/lib
71 TSPIINCDIR=$(TSSROOT)/usr/include
72 TSSLIB=-L$(TSPILIBDIR)
73 TSSLIB64=-L$(TSPILIBDIR)/$(MACH64)
74 TSSINC=-I$(TSPIINCDIR)
75
76 LDLIBS += $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi -lcrypto
77 CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC)
78 CPPFLAGS64 += $(CPPFLAGS)
79 C99MODE= $(C99_ENABLE)
80
81 CERRWARN += -_gcc=-Wno-parentheses
82 CERRWARN += -_gcc=-Wno-unused-label
83 CERRWARN += -_gcc=-Wno-uninitialized
84
85 LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c)
86
87 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
88 LINTSRC= $(SRCS)
89
90 CLOBBERFILES += C.ln
91
92 .KEEP_STATE:
93
94 all: $(LIBS)
95
96 lint: $$(LINTSRC)
97 $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS)
98
|
1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright 2015 Gary Mills
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 LIBRARY = pkcs11_tpm.a
26 VERS = .1
27
28 OBJECTS= api_interface.o \
29 apiutil.o \
30 asn1.o \
31 cert.o \
32 data_obj.o \
33 decr_mgr.o \
34 dig_mgr.o \
35 encr_mgr.o \
36 globals.o \
37 hwf_obj.o \
38 key.o \
39 key_mgr.o \
40 loadsave.o \
41 log.o \
57
58 SRCDIR= ../common
59
60 SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c)
61
62 # set signing mode
63 POST_PROCESS_SO += ; $(ELFSIGN_CRYPTO)
64
65 ROOTLIBDIR=$(ROOT)/usr/lib/security
66 ROOTLIBDIR64=$(ROOT)/usr/lib/security/$(MACH64)
67
68 LIBS=$(DYNLIB) $(DYNLIB64)
69
70 TSSROOT=$(ADJUNCT_PROTO)
71 TSPILIBDIR=$(TSSROOT)/usr/lib
72 TSPIINCDIR=$(TSSROOT)/usr/include
73 TSSLIB=-L$(TSPILIBDIR)
74 TSSLIB64=-L$(TSPILIBDIR)/$(MACH64)
75 TSSINC=-I$(TSPIINCDIR)
76
77 # Use libraries and include files from the build host
78 LDLIBS= $(TSSLIB) -L$(ADJUNCT_PROTO)/lib -lc -luuid -lmd -ltspi \
79 -lcrypto
80 CPPFLAGS= $(DTEXTDOM) $(DTS_ERRNO)
81 CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS
82 COMPILE.c= $(CC) $(CFLAGS) $(TSSINC) $(CPPFLAGS) -c
83 LINT.c= $(LINT) $(ONLY_LINT_DEFS) $(LINTFLAGS) $(TSSINC) $(CPPFLAGS) \
84 $(ALWAYS_LINT_DEFS)
85
86 C99MODE= $(C99_ENABLE)
87
88 CERRWARN += -_gcc=-Wno-parentheses
89 CERRWARN += -_gcc=-Wno-unused-label
90 CERRWARN += -_gcc=-Wno-uninitialized
91
92 LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c)
93
94 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
95 LINTSRC= $(SRCS)
96
97 CLOBBERFILES += C.ln
98
99 .KEEP_STATE:
100
101 all: $(LIBS)
102
103 lint: $$(LINTSRC)
104 $(LINT.c) $(LINTCHECKFLAGS) $(LINTSRC) $(LDLIBS)
105
|