File: Makefile

package info (click to toggle)
man-db 2.4.2-21sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,964 kB
  • ctags: 2,396
  • sloc: ansic: 19,877; sh: 3,674; lex: 1,131; makefile: 828; yacc: 316; perl: 70; sed: 16
file content (75 lines) | stat: -rw-r--r-- 1,922 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Library Makefile for the man package.
#
# Copyright (C) 1994, 1995 Graeme Wilford.
#
# This file is part of man-db.
#
# man-db is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# man-db is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with man-db; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# Wed June  6 15:44:47 BST 1994 Wilf. (G.Wilford@ee.surrey.ac.uk):

library = libman.a

srcdir = .

top_srcdir = ..

include ../include/Defines

.PHONY: $(DEFAULT_TARGETS) test

MANCPPFLAGS = -I../include -I$(top_srcdir) -I$(srcdir) -I-

ALLSRCS = alloca.c basename.c cleanup.c error.c fnmatch.c getopt.c getopt1.c \
	  glob.c memcmp.c putenv.c realpath.c rename.c \
	  strappend.c strcspn.c strsep.c strspn.c strstr.c strnlen.c \
	  xmalloc.c xstrdup.c xstrndup.c \
	  waitpid.c tempfile.c mkdtemp.c mkstemp.c tempname.c hashtable.c \
	  xstrsignal.c pipeline.c

ALLOBJS = $(ALLSRCS:.c=.o)

XOBJS = xstrdup.o xstrndup.o xmalloc.o error.o xstrsignal.o

ALL =   $(libobjects) cleanup.o strappend.o tempfile.o \
      hashtable.o pipeline.o $(XOBJS)

all: $(library)

test: $(library)($(ALLOBJS))
	-$(RANLIB) $(library)

$(library): $(library)($(ALL))
	-$(RANLIB) $@

mkdtemp.o mkstemp.o: tempname.o

# The standard targets
install uninstall:

mostlyclean:
	rm -f *~ core $(ALL)

clean: mostlyclean
	rm -f $(library)

distclean: clean
	rm -f Makefile

realclean: distclean
	rm -f tags

TAGS:
	$(MKTAGS) $(srcdir)/*.[ch]