File: tools.mk

package info (click to toggle)
opencryptoki 3.23.0%2Bdfsg-0.3
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,604 kB
  • sloc: ansic: 214,248; sh: 2,759; makefile: 289; yacc: 242; pascal: 152; exp: 126; lex: 93; cpp: 9
file content (27 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
noinst_PROGRAMS += tools/tableidxgen tools/policyexamplegen

TOOLS_CFLAGS = -I${srcdir}/usr/include -I${srcdir}/usr/lib/api -I${top_builddir}/usr/lib/api

tools_tableidxgen_SOURCES = tools/tableidxgen.c usr/lib/api/mechtable.inc

tools_policyexamplegen_SOURCES = tools/policyexamplegen.c usr/lib/api/mechtable.c

if CROSS
tools_tableidxgen_LINK = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@

$(tools_tableidxgen_OBJECTS): CC=$(CC_FOR_BUILD)
$(tools_tableidxgen_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD) $(TOOLS_CFLAGS)
$(tools_tableidxgen_OBJECTS): LDFLAGS=$(LDFLAGS_FOR_BUILD)

tools_policyexamplegen_LINK = $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@

$(tools_policyexamplegen_OBJECTS): CC=$(CC_FOR_BUILD)
$(tools_policyexamplegen_OBJECTS): CFLAGS=$(CFLAGS_FOR_BUILD)  $(TOOLS_CFLAGS)
$(tools_policyexamplegen_OBJECTS): LDFLAGS=$(LDFLAGS_FOR_BUILD)
else
tools_tableidxgen_LINK = $(LINK)
tools_tableidxgen_CFLAGS = $(TOOLS_CFLAGS)

tools_policyexamplegen_LINK = $(LINK)
tools_policyexamplegen_CFLAGS = $(TOOLS_CFLAGS)
endif