File: Makefile.in

package info (click to toggle)
glimpse 4.1-2
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 2,344 kB
  • ctags: 2,254
  • sloc: ansic: 32,194; makefile: 561; sh: 170; perl: 142
file content (54 lines) | stat: -rw-r--r-- 1,034 bytes parent folder | download | duplicates (2)
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
#
#  Makefile for the utilities source directory 
#
#  $Id: Makefile.in,v 1.6 1994/09/30 21:55:07 hardy Exp $
#

srcdir = @srcdir@
VPATH  = @srcdir@
prefix = /usr/local/harvest
INSTALL_BINDIR	= $(prefix)/bin
INSTALL_LIBDIR	= $(prefix)/lib
INSTALL_MANDIR 	= $(prefix)/man

SHELL		= /bin/sh
CC		= @CC@
INSTALL		= @INSTALL@
INSTALL_BIN 	= @INSTALL_PROGRAM@
INSTALL_FILE 	= @INSTALL_DATA@
RANLIB		= @RANLIB@

INCLUDE         = -I$(srcdir)/../include
CFLAGS                = -O
ALL_CFLAGS	= $(CFLAGS) $(DEBUG) $(INCLUDE)

.c.o:
		$(CC) -c $(ALL_CFLAGS) $<

LIBDIR		= ../lib
LIBFILE		= libutil.a
OBJS		= buffer.o host.o log.o strdup.o system.o strerror.o \
		string.o xmalloc.o

all:  $(LIBFILE)

ctags:
	@ctags -w *.c 

clean:
	-rm -f core *.o $(LIBFILE) tags 

#realclean:	clean
#	-rm -rf Makefile

install:	install-lib

install-lib:	$(LIBDIR)/$(LIBFILE)

$(LIBDIR)/$(LIBFILE):	$(LIBFILE)
	$(INSTALL_FILE) $(LIBFILE) $(LIBDIR)/$(LIBFILE)
	$(RANLIB) $(LIBDIR)/$(LIBFILE)

$(LIBFILE):	$(OBJS)
	ar r $(LIBFILE) $(OBJS)
	$(RANLIB) $(LIBFILE)