added lint targets for Makefiles and a configure test to find whether lclint or lint...
[mmh] / zotnet / bboards / Makefile.in
1 #
2 # Makefile for zotnet/bboards subdirectory
3 #
4 # $Id$
5 #
6
7 SHELL = /bin/sh
8
9 top_srcdir = @top_srcdir@
10 srcdir     = @srcdir@
11 VPATH      = @srcdir@
12
13 CC         = @CC@
14 CFLAGS     = @CFLAGS@
15 DEFS       = @DEFS@
16 INCLUDES   = -I../.. -I$(srcdir) -I$(top_srcdir)
17
18 LINT       = @LINT@
19 LINTFLAGS  = @LINTFLAGS@
20
21 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
22
23 .SUFFIXES:
24 .SUFFIXES: .c .o
25
26 .c.o:
27         $(COMPILE) $<
28
29 # header files
30 HDRS = bboards.h
31
32 # source files
33 SRCS = getbbent.c
34
35 # object files
36 OBJS = getbbent.o
37
38 # auxiliary files
39 AUX = Makefile.in
40
41 # all files in this directory included in the distribution
42 DIST = $(HDRS) $(SRCS) $(AUX)
43
44 # ========= DEPENDENCIES FOR BUILDING ==========
45
46 all: $(OBJS)
47
48 install:
49
50 uninstall:
51
52 # ========== DEPENDENCIES FOR CLEANUP ==========
53
54 mostlyclean:
55         rm -f *.o *~
56
57 clean: mostlyclean
58
59 distclean: clean
60         rm -f Makefile
61
62 realclean: distclean
63
64 superclean: realclean
65
66 # ========== DEPENDENCIES FOR LINT =================
67
68 lint: 
69         $(LINT) $(LINTFLAGS) $(INCLUDES) $(DEFS) $(SRCS)
70
71 # ========== DEPENDENCIES FOR MAINTENANCE ==========
72
73 subdir = zotnet/bboards
74
75 Makefile: Makefile.in ../../config.status
76         cd ../.. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
77  
78 distdir = ../../`cat ../../distname`/$(subdir)
79 nmhdist: $(DIST)
80         @echo "Copying distribution files in $(subdir)"
81         @for file in $(DIST); do \
82           cp -p $(srcdir)/$$file $(distdir); \
83         done
84