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)
|
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
77
78 # libcrypto has no lint library, so we can only use it when
79 # building
80 $(LIBS) := LDLIBS += -lcrypto
81
82 CPPFLAGS += -xCC -D_POSIX_PTHREAD_SEMANTICS $(TSSINC)
83 CPPFLAGS64 += $(CPPFLAGS)
84 C99MODE= $(C99_ENABLE)
85
86 CERRWARN += -_gcc=-Wno-parentheses
87 CERRWARN += -_gcc=-Wno-unused-label
88 CERRWARN += -_gcc=-Wno-uninitialized
89
90 LINTSRC= $(OBJECTS:%.o=$(SRCDIR)/%.c)
91
92 $(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)
93 LINTSRC= $(SRCS)
94
95 CLOBBERFILES += C.ln
96
97 .KEEP_STATE:
98
99 all: $(LIBS)
100
101 lint: $$(LINTSRC)
|