Initial import from FreeBSD RELENG_4:
[dragonfly.git] / crypto / kerberosIV / lib / auth / sia / Makefile.in
1 #
2 # $Id: Makefile.in,v 1.30.2.1 2000/06/23 03:20:06 assar Exp $
3 #
4
5 SHELL = /bin/sh
6
7 srcdir = @srcdir@
8 VPATH = @srcdir@
9
10 CC = @CC@
11 LINK = @LINK@
12 AR = ar
13 RANLIB = @RANLIB@
14 DEFS = @DEFS@
15 CFLAGS = @CFLAGS@ $(WFLAGS)
16 WFLAGS = @WFLAGS@
17
18 INSTALL = @INSTALL@
19 INSTALL_DATA    = @INSTALL_DATA@
20 MKINSTALLDIRS = @top_srcdir@/mkinstalldirs
21
22 prefix = @prefix@
23 exec_prefix = @exec_prefix@
24 libdir = @libdir@
25
26 PICFLAGS = @REAL_PICFLAGS@
27 SHARED = @SHARED@
28 LDSHARED = @LDSHARED@
29 SHLIBEXT = @REAL_SHLIBEXT@
30 LD_FLAGS = @REAL_LD_FLAGS@
31  
32 @lib_deps_yes@LIB_DEPS = -L../../kafs -lkafs            \
33 @lib_deps_yes@     -L../../kadm -lkadm                  \
34 @lib_deps_yes@     -L../../krb -lkrb                    \
35 @lib_deps_yes@     -L../../des -ldes                    \
36 @lib_deps_yes@     -L../../com_err -lcom_err            \
37 @lib_deps_yes@     -L../../roken -lroken                \
38 @lib_deps_yes@     @LIB_getpwnam_r@                     \
39 @lib_deps_yes@     -lc
40 @lib_deps_no@LIB_DEPS =
41
42 LIBNAME = libsia_krb4
43 LIB = $(LIBNAME).$(SHLIBEXT)
44
45 SOURCES = sia.c posix_getpw.c
46
47 OBJECTS = sia.o posix_getpw.o
48
49 all: $(LIB)
50
51 Wall:
52         make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
53
54 .c.o:
55         $(CC) -c $(DEFS) -I../../../include -I$(srcdir) $(CFLAGS) $(CPPFLAGS) $(PICFLAGS) $<
56
57 install: all
58         $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
59         -if test "$(LIB)" != ""; then \
60           $(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir)/$(LIB) ; \
61         fi
62
63 uninstall:
64         -if test "$(LIB)" != ""; then \
65           rm -f $(DESTDIR)$(libdir)/$(LIB) ; \
66         fi
67
68 TAGS: $(SOURCES)
69         etags $(SOURCES)
70
71 check:
72
73 clean:
74         rm -f $(LIB) *.o
75
76 mostlyclean: clean
77
78 distclean: clean
79         rm -f Makefile *.tab.c *~
80
81 realclean: distclean
82         rm -f TAGS
83
84 $(OBJECTS): ../../../include/config.h
85
86 $(LIB): $(OBJECTS)
87         rm -f $@
88         $(LDSHARED) -shared -o $@ -rpath $(libdir) -hidden -exported_symbol siad_\* $(OBJECTS) $(LIB_DEPS)
89
90 .PHONY: all Wall install uninstall check clean mostlyclean distclean realclean