hesiod and krb5 test fixes
[mmh] / zotnet / mts / Makefile.in
1 #
2 # Makefile for zotnet/mts subdirectory
3 #
4 # $Id$
5 #
6
7 SHELL = /bin/sh
8
9 top_srcdir = @top_srcdir@
10 srcdir     = @srcdir@
11 VPATH      = @srcdir@
12
13 prefix      = @prefix@
14 exec_prefix = @exec_prefix@
15 bindir      = @bindir@
16 libdir      = @libdir@
17 etcdir      = @sysconfdir@
18
19 mailspool    = @mailspool@
20 sendmailpath = @sendmailpath@
21
22 CC         = @CC@
23 CFLAGS     = @CFLAGS@
24 DEFS       = @DEFS@
25 KRB4_INCLUDES = @KRB4_INCLUDES@
26 HESIOD_INCLUDES = @HESIOD_INCLUDES@
27 INCLUDES   = -I../.. -I$(srcdir) -I$(top_srcdir) $(KRB4_INCLUDES) $(HESIOD_INCLUDES)
28 CONFIGDEFS = -DNMHETCDIR='"$(etcdir)"' -DMAILSPOOL='"$(mailspool)"' -DSENDMAILPATH='"$(sendmailpath)"'
29 LINT       = @LINT@
30 LINTFLAGS  = @LINTFLAGS@
31
32 COMPILE  = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
33 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
34
35 SED = sed
36
37 .SUFFIXES:
38 .SUFFIXES: .c .o
39
40 .c.o:
41         $(COMPILE) $<
42
43 # header files
44 HDRS = mts.h
45
46 # source files
47 SRCS = mts.c client.c
48
49 # object files
50 OBJS = mts.o client.o
51
52 # auxiliary files
53 AUX = Makefile.in
54
55 # all files in this directory included in the distribution
56 DIST = $(HDRS) $(SRCS) $(AUX)
57
58 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
59
60 all: $(OBJS)
61
62 mts.o: mts.c
63         $(COMPILE2) $<
64
65 install:
66
67 uninstall:
68
69 # ========== DEPENDENCIES FOR CLEANUP ==========
70
71 mostlyclean:
72         rm -f *.o *~
73
74 clean: mostlyclean
75
76 distclean: clean
77         rm -f Makefile
78
79 realclean: distclean
80
81 superclean: realclean
82
83 # ========== DEPENDENCIES FOR LINT ================
84
85 lint: 
86         $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
87
88 # ========== DEPENDENCIES FOR MAINTENANCE ==========
89
90 subdir = zotnet/mts
91
92 Makefile: Makefile.in ../../config.status
93         cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
94  
95 distdir = ../../`cat ../../distname`/$(subdir)
96 nmhdist: $(DIST)
97         @echo "Copying distribution files in $(subdir)"
98         @for file in $(DIST); do \
99           cp -p $(srcdir)/$$file $(distdir); \
100         done
101