4 # This file is part of the OpenPTS project.
6 # The Initial Developer of the Original Code is International
7 # Business Machines Corporation. Portions created by IBM
8 # Corporation are Copyright (C) 2010 International Business
9 # Machines Corporation. All Rights Reserved.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the Common Public License as published by
13 # IBM Corporation; either version 1 of the License, or (at your option)
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # Common Public License for more details.
21 # You should have received a copy of the Common Public License
22 # along with this program; if not, a copy can be viewed at
23 # http://www.opensource.org/licenses/cpl1.0.php.
29 localedir = $(datadir)/locale
32 AM_CPPFLAGS = -I$(top_srcdir)/include $(LIBXML2_CFLAGS) $(TSS_CFLAGS) -I../include -DLOCALEDIR=\"$(localedir)\"
33 AM_LDFLAGS = $(LIBXML2_LIBS) $(LIBCRYPTO_LIBS) $(TSS_LIBS) -lopenpts
34 # $(LIBINTL) -lopenpts
37 AM_CPPFLAGS += $(LIBUUID_CFLAGS)
38 AM_LDFLAGS += $(LIBUUID_LIBS)
43 bin_PROGRAMS = openpts uml2dot rm2dot ir2text
50 lib_LTLIBRARIES = libopenpts.la
51 libopenpts_la_LDFLAGS = -release $(RELEASE)
52 libopenpts_la_SOURCES = verifier.c ifm.c iml.c ir.c base64.c tpm.c ctx.c \
53 conf.c uml.c fsm.c rm.c log.c action.c prop.c policy.c tss.c nonce.c smbios.c \
54 misc.c snapshot.c reason.c uuid.c collector.c ssh.c target.c
56 #ptsc_SOURCES = ptsc.c log.c
57 ptsc_CFLAGS = $(AM_CFLAGS)
58 ptsc_LDFLAGS = $(AM_LDFLAGS)
59 #ptsc_SOURCES = ptsc.c verifier.c ifm.c iml.c ir.c base64.c tpm.c ctx.c \
60 #conf.c uml.c fsm.c rm.c log.c action.c prop.c policy.c tss.c nonce.c smbios.c \
61 #misc.c snapshot.c reason.c uuid.c collector.c ssh.c
65 #ptscd_SOURCES = ptscd.c verifier.c ifm.c iml.c ir.c base64.c tpm.c ctx.c \
66 #conf.c uml.c fsm.c rm.c log.c action.c prop.c policy.c tss.c nonce.c smbios.c \
67 #misc.c snapshot.c reason.c uuid.c collector.c ssh.c
68 openpts_CFLAGS = $(AM_CFLAGS)
69 openpts_LDFLAGS = $(AM_LDFLAGS)
70 openpts_SOURCES = openpts.c
72 #verifier.c ifm.c iml.c ir.c base64.c tpm.c ctx.c \
73 #conf.c uml.c fsm.c rm.c log.c action.c prop.c policy.c nonce.c tss.c misc.c \
74 #snapshot.c reason.c uuid.c ssh.c
77 # TODO do not call the ctx?
78 uml2dot_CFLAGS = $(AM_CFLAGS)
79 uml2dot_LDFLAGS = $(AM_LDFLAGS)
80 uml2dot_SOURCES = uml2dot.c
83 ##uml.c fsm.c iml.c tpm.c base64.c action.c prop.c \
84 #policy.c ctx.c nonce.c misc.c tss.c rm.c ir.c snapshot.c conf.c log.c reason.c \
87 rm2dot_CFLAGS = $(AM_CFLAGS)
88 rm2dot_LDFLAGS = $(AM_LDFLAGS)
89 rm2dot_SOURCES = rm2dot.c
92 #uml.c fsm.c iml.c tpm.c base64.c action.c prop.c \
93 #policy.c ctx.c nonce.c misc.c rm.c ir.c tss.c snapshot.c conf.c log.c reason.c \
96 ir2text_CFLAGS = $(AM_CFLAGS)
97 ir2text_LDFLAGS = $(AM_LDFLAGS)
98 ir2text_SOURCES = ir2text.c
102 ptsevt_CFLAGS = $(AM_CFLAGS)
103 ptsevt_LDFLAGS = $(AM_LDFLAGS)
104 ptsevt_SOURCES = ptsevt.c
106 ptsevtd_CFLAGS = $(AM_CFLAGS)
107 ptsevtd_LDFLAGS = $(AM_LDFLAGS) -lrt
108 ptsevtd_SOURCES = ptsevtd.c
112 #ptscd_SOURCES += uuid_libuuid.c
113 #ptsc_SOURCES += uuid_libuuid.c
114 #openpts_SOURCES += uuid_libuuid.c
115 #uml2dot_SOURCES += uuid_libuuid.c
116 #rm2dot_SOURCES += uuid_libuuid.c
118 libopenpts_la_SOURCES += uuid_libuuid.c
120 AM_CPPFLAGS += -DCONFIG_LIBUUID
123 #ptscd_SOURCES += uuid_libc.c
124 #ptsc_SOURCES += uuid_libc.c
125 #openpts_SOURCES += uuid_libc.c
126 #uml2dot_SOURCES += uuid_libc.c
127 #rm2dot_SOURCES += uuid_libc.c
128 libopenpts_la_SOURCES += uuid_libc.c
133 AM_CPPFLAGS += -DCONFIG_TSS
135 iml2text_CFLAGS = $(AM_CFLAGS)
136 iml2text_LDFLAGS = $(AM_LDFLAGS)
137 iml2text_SOURCES = iml2text.c
139 #misc.c log.c base64.c
141 tpm_createkey_SOURCE = tpm_createkey.c
143 tpm_createkey_CFLAGS = $(AM_CFLAGS)
146 tpm_readpcr_CFLAGS = $(AM_CFLAGS)
147 tpm_readpcr_LDFLAGS = $(AM_LDFLAGS)
148 tpm_readpcr_SOURCE = tpm_readpcr.c
150 tpm_extendpcr_CFLAGS = $(AM_CFLAGS)
151 tpm_extendpcr_LDFLAGS = $(AM_LDFLAGS)
152 tpm_extendpcr_SOURCE = tpm_extendpcr.c
154 bin_PROGRAMS += tpm_createkey iml2text tpm_readpcr tpm_extendpcr
156 AM_CPPFLAGS += -DCONFIG_NO_TSS
161 if OPENPTS_BUILD_LIBTNC
162 lib_LTLIBRARIES += libopenpts_imc.la libopenpts_imv.la
164 libopenpts_imc_la_SOURCES = imc.c
165 libopenpts_imc_la_CFLAGS = $(AM_CFLAGS) -I../include/tnc
166 libopenpts_imc_la_LDFLAGS = -release $(RELEASE)
167 libopenpts_imc_la_LIBADD = $(AM_LDFLAGS)
169 libopenpts_imv_la_SOURCES = imv.c
170 libopenpts_imv_la_CFLAGS = $(AM_CFLAGS) -I../include/tnc
171 libopenpts_imv_la_LDFLAGS = -release $(RELEASE)
172 libopenpts_imv_la_LIBADD = $(AM_LDFLAGS)
175 AM_CPPFLAGS += -DCONFIG_NO_LIBTNC
179 if OPENPTS_BUILD_AIDE
180 AM_CPPFLAGS += -DCONFIG_AIDE
181 bin_PROGRAMS += iml2aide
182 #ptscd_SOURCES += aide.c
183 #ptsc_SOURCES += aide.c
184 #openpts_SOURCES += aide.c
185 #uml2dot_SOURCES += aide.c # ctx.c nonce.c
186 #rm2dot_SOURCES += aide.c
188 libopenpts_la_SOURCES += aide.c
190 iml2aide_CFLAGS = $(AM_CFLAGS)
191 iml2aide_LDFLAGS = $(AM_LDFLAGS)
192 iml2aide_SOURCES = iml2aide.c
195 # verifier.c ifm.c iml.c ir.c base64.c tpm.c ctx.c \
196 #conf.c uml.c fsm.c rm.c log.c action.c prop.c policy.c nonce.c tss.c aide.c \
197 #misc.c snapshot.c reason.c uuid.c ssh.c
200 #iml2aide_SOURCES += uuid_libuuid.c
202 #iml2aide_SOURCES += uuid_libc.c
206 if OPENPTS_BUILD_TBOOT
207 AM_CPPFLAGS += -DCONFIG_TBOOT
208 bin_PROGRAMS += tboot2iml
209 tboot2iml_CFLAGS = $(AM_CFLAGS)
210 tboot2iml_LDFLAGS = $(AM_LDFLAGS)
211 tboot2iml_SOURCES = tboot2iml.c
217 if OPENPTS_BUILD_SQLITE
218 AM_CPPFLAGS += -DCONFIG_SQLITE
220 AM_LDFLAGS += $(SQLITE_LIBS)
224 AM_CPPFLAGS += -DCONFIG_PQ
225 AM_LDFLAGS += $(PQ_LIBS)
232 if OPENPTS_BUILD_AUTO_RM_UPDATE
233 AM_CPPFLAGS += -DCONFIG_AUTO_RM_UPDATE
234 #ptscd_SOURCES += aru.c
235 #ptsc_SOURCES += aru.c
236 #openpts_SOURCES += aru.c
237 #uml2dot_SOURCES += aru.c ifm.c
238 #rm2dot_SOURCES += aru.c ifm.c
240 libopenpts_la_SOURCES += aru.c
242 #if OPENPTS_BUILD_AIDE
243 #iml2aide_SOURCES += aru.c