steps to support modern FreeBSD. After Robert Watson <rwatson@FreeBSD.org> and Alec...
[arla.git] / milko / pts / Makefile.in
blob24e1162c34dc90d7dc9ee9a4a790220017b92e3b
1 # $Id$
3 srcdir = @srcdir@
4 top_builddir = ../..
5 VPATH = @srcdir@
7 CC = @CC@
9 INSTALL = @INSTALL@
10 INSTALL_PROGRAM = @INSTALL_PROGRAM@
11 INSTALL_DATA = @INSTALL_DATA@
12 MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
14 prefix = @prefix@
15 exec_prefix = @exec_prefix@
16 libdir = @libdir@
17 libexecdir = @libexecdir@
18 bindir = @bindir@
19 sysconfdir = @sysconfdir@
20 transform = @program_transform_name@
22 PTSERVER_BIN = ptserver
24 DEFS = @DEFS@ -DMILKO_SYSCONFDIR=\"$(sysconfdir)\"
26 SHELL = /bin/sh
28 CFLAGS = @CFLAGS@
29 LDFLAGS = @LDFLAGS@
31 ETAGS = etags
32 MAKEDEPEND = makedepend
33 AFSWSROOT = /usr/afsws
34 RXKADINC = -I$(srcdir)/../rxkad
35 INCLUDES = -I$(srcdir)/../.. \
36 -I../../include \
37 -I$(srcdir)/../../include \
38 -I$(srcdir)/../lib/mlog \
39 -I$(srcdir)/../lib/mdb \
40 -I$(srcdir)/../../rxkad \
41 -I$(srcdir)/../lib/msecurity \
42 -I../../rxdef \
43 @INC_roken@ \
44 $(RXKADINC)
45 DEFINES = -DDEBUG
46 REALCFLAGS = $(INCLUDES) @KRB5_INC_FLAGS@ $(DEFINES) $(CFLAGS) -DRXDEBUG
47 RXKADLIB = @RXKAD_LIBS@
48 KAFS_LIBS = @AIX_EXTRA_KAFS@ @KAFS_LIBS@
49 DBLIB = @DBLIB@
50 LIBS = -L../lib/msecurity -lmsecurity \
51 -L../../rxdef -lrxfsserver \
52 -L../lib/mlog -lmlog \
53 -L../lib/mdb -lmdb \
54 ../../lib/ko/libko.la ../../util/libarlautil.la \
55 -L../../rxdef -lptserver -L../../rx -lrx \
56 -L../../lwp -llwp @PLWP_LIB_FLAGS@ \
57 $(RXKADLIB) $(DBLIB) \
58 $(KAFS_LIBS) \
59 @LIB_roken@ \
60 @LIBS@
61 LIBDEPENDS = ../../rxdef/librxdefclient.la ../../rx/librx.la \
62 ../../lwp/liblwp.a ../../util/libarlautil.la \
63 ../../lib/ko/libko.la \
64 ../lib/voldb/libvoldb.a ../lib/vld/libvld.a \
65 ../lib/msecurity/libmsecurity.a ../lib/mdb/libmdb.a
66 PROGS = ptserver
67 SRCS = \
68 ptserver.c \
69 pr.c
71 HDRS =
73 ptserver_OBJS = \
74 ptserver.o \
75 pr.o
77 .PHONY: all install uninstall depend tags clean
79 all: $(PROGS)
81 .c.o:
82 $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) -I. $(REALCFLAGS) $<
84 install: all
85 $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
86 PROG_BIN='$(PTSERVER_BIN)'; for x in $$PROG_BIN; do \
87 f=`echo $$x | sed '$(transform)'`; \
88 $(INSTALL_PROGRAM) $$x $(DESTDIR)$(libexecdir)/$$f; \
89 done
91 uninstall:
92 PROG_BIN='$(PTSERVER_BIN)'; for x in $$PROG_BIN; do \
93 f=`echo $$x | sed '$(transform)'`; \
94 rm -f $(DESTDIR)$(libexecdir)/$$f; \
95 done
97 ptserver: $(ptserver_OBJS) $(LIBDEPENDS)
98 $(top_builddir)/libtool $(CC) $(LDFLAGS) -o $@ $(ptserver_OBJS) $(LIBS)
100 Makefile: Makefile.in ../../config.status
101 cd ../..; CONFIG_FILES=milko/pts/Makefile CONFIG_HEADERS= $(SHELL) config.status
103 depend: $(SRCS)
104 $(MAKEDEPEND) -- $(REALCFLAGS) -- $^
106 tags: TAGS
108 TAGS: $(SRCS) $(HDRS)
109 $(ETAGS) -t $(SRCS) $(HDRS)
111 clean :
112 rm -f $(PROGS) $(OBJS) *~ *.o core *.core
114 mostlyclean: clean
116 distclean: clean
117 rm -f Makefile config.status
119 realclean: distclean
120 rm -f TAGS