summaryrefslogtreecommitdiffstats
path: root/src/kadmin/testing/util/Makefile.in
blob: 62a98f613b9ee66a0b98aa7313aef2321130668b (plain)
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
28
29
30
31
32
33
34
35
36
37
thisconfigdir=./../..
BUILDTOP=$(REL)$(U)$(S)$(U)$(S)$(U)
CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) $(TCL_INCLUDES)

PROG_LIBPATH=-L$(TOPLIBD) $(TCL_LIBPATH)
PROG_RPATH=$(KRB5_LIBDIR)$(TCL_RPATH)

SRCS	=	tcl_ovsec_kadm.c tcl_kadm5.c test.c
OBJS	=	tcl_ovsec_kadm.o tcl_kadm5.o test.o

CLNTPROG=	ovsec_kadm_clnt_tcl
SRVPROG	=	ovsec_kadm_srv_tcl

DO_ALL=@DO_ALL@

all:: all-$(DO_ALL)

all-::
	@echo "+++"
	@echo "+++ WARNING: Tcl not available.  The kadm5 tests will not be run."
	@echo "+++"

all-tcl:: $(CLNTPROG) $(SRVPROG)

$(SRVPROG): $(OBJS) $(KADMSRV_DEPLIBS) $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o $(SRVPROG) $(OBJS) \
		$(KADMSRV_LIBS) $(KRB5_BASE_LIBS) $(TCL_LIBS)

$(CLNTPROG): $(OBJS) $(KADMCLNT_DEPLIBS) $(KRB5_BASE_DEPLIBS)
	$(CC_LINK) -o $(CLNTPROG) $(OBJS) \
		$(KADMCLNT_LIBS) $(KRB5_BASE_LIBS) $(TCL_LIBS)

bsddb_dump: bsddb_dump.o
	$(CC_LINK) -o bsddb_dump bsddb_dump.o $(KADMSRV_LIBS)

clean:: 
	$(RM) $(CLNTPROG) $(SRVPROG)