summaryrefslogtreecommitdiffstats
path: root/src/tests/misc/Makefile.in
blob: a6fa1a4aa1f6e5ff2481be26e573c024d9be9e7d (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
38
39
40
41
42
43
44
45
46
47
thisconfigdir=../..
myfulldir=tests/misc
mydir=tests/misc
BUILDTOP=$(REL)..$(S)..
RUN_SETUP = @KRB5_RUN_ENV@
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)

OBJS=test_getpw.o
SRCS=$(srcdir)/test_getpw.c

all:: test_getpw

check:: test_getpw test_cxx_krb5 test_cxx_gss
	$(RUN_SETUP) $(VALGRIND) ./test_getpw
	$(RUN_SETUP) $(VALGRIND) ./test_cxx_krb5
	$(RUN_SETUP) $(VALGRIND) ./test_cxx_gss

test_getpw: $(OUTPRE)test_getpw.$(OBJEXT) $(SUPPORT_DEPLIB)
	$(CC_LINK) $(ALL_CFLAGS) -o test_getpw $(OUTPRE)test_getpw.$(OBJEXT) $(SUPPORT_LIB)

test_getsockname: $(OUTPRE)test_getsockname.$(OBJEXT)
	$(CC_LINK) $(ALL_CFLAGS) -o test_getsockname $(OUTPRE)test_getsockname.$(OBJEXT) $(LIBS)

CXX_LINK=$(CC_LINK) # hack!
test_cxx_krb5 test_cxx_gss: CC=$(CXX)
test_cxx_krb5: $(OUTPRE)test_cxx_krb5.$(OBJEXT) $(KRB5_DEPLIB)
	$(CXX_LINK) $(ALL_CXXFLAGS) -o test_cxx_krb5 $(OUTPRE)test_cxx_krb5.$(OBJEXT) $(KRB5_LIB) $(LIBS)
test_cxx_gss: $(OUTPRE)test_cxx_gss.$(OBJEXT)
	$(CXX_LINK) $(ALL_CXXFLAGS) -o test_cxx_gss $(OUTPRE)test_cxx_gss.$(OBJEXT) $(LIBS)

test_cxx_krb5.$(OBJEXT): test_cxx_krb5.cpp
test_cxx_gss.$(OBJEXT): test_cxx_gss.cpp

install::

clean::
	$(RM) test_getpw test_cxx_krb5 test_cxx_gss *.o

# +++ Dependency line eater +++
# 
# Makefile dependencies follow.  This must be the last section in
# the Makefile.in file
#
$(OUTPRE)test_getpw.$(OBJEXT): $(BUILDTOP)/include/autoconf.h \
  $(SRCTOP)/include/k5-platform.h $(SRCTOP)/include/k5-thread.h \
  test_getpw.c