Initial revision
[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
30 COMPILE  = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
31 COMPILE2 = $(CC) -c $(DEFS) $(CONFIGDEFS) $(INCLUDES) $(CFLAGS)
32
33 SED = sed
34
35 .SUFFIXES:
36 .SUFFIXES: .c .o
37
38 .c.o:
39         $(COMPILE) $<
40
41 # header files
42 HDRS = mts.h
43
44 # source files
45 SRCS = mts.c client.c
46
47 # object files
48 OBJS = mts.o client.o
49
50 # auxiliary files
51 AUX = Makefile.in
52
53 # all files in this directory included in the distribution
54 DIST = $(HDRS) $(SRCS) $(AUX)
55
56 # ========= DEPENDENCIES FOR BUILDING AND INSTALLING ==========
57
58 all: $(OBJS)
59
60 mts.o: mts.c
61         $(COMPILE2) $<
62
63 install:
64
65 uninstall:
66
67 # ========== DEPENDENCIES FOR CLEANUP ==========
68
69 mostlyclean:
70         rm -f *.o *~
71
72 clean: mostlyclean
73
74 distclean: clean
75         rm -f Makefile
76
77 realclean: distclean
78
79 superclean: realclean
80
81 # ========== DEPENDENCIES FOR MAINTENANCE ==========
82
83 subdir = zotnet/mts
84
85 Makefile: Makefile.in ../../config.status
86         cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
87  
88 distdir = ../../`cat ../../distname`/$(subdir)
89 nmhdist: $(DIST)
90         @echo "Copying distribution files in $(subdir)"
91         @for file in $(DIST); do \
92           cp -p $(srcdir)/$$file $(distdir); \
93         done
94