File: Makefile

package info (click to toggle)
metrics 1.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 452 kB
  • ctags: 342
  • sloc: ansic: 2,101; lex: 747; makefile: 250; yacc: 233; sh: 209
file content (100 lines) | stat: -rw-r--r-- 2,019 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Generated automatically from Makefile.in by configure.
#
# This Makefile includes modification done by me,
# Ioannis Tambouras <ioannis@debian.org>, on work credited to
# Christopher Lott <lott@informatik.uni-kl.de>. All the hard work is his.
# Though my changes were many, they were only minor and were done to suit my
# tastes. Always send your thanks to Christopher, not to me. 
#
# Christopher Lott <lott@informatik.uni-kl.de>. 
# FB Informatik - Bau 57 / Universitaet KL / D--67653 Kaiserslautern / Germany
#
# This program 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.  See the file COPYING for details.
#

# An ANSI C compiler is required because of function prototypes
# Flex is required.  Lex refuses to accept the file scan.l

#
CC	= gcc
DEFS	= 
CFLAGS	= -O
LDFLAGS = 
LIBS    = 
LEX	= flex

#
# how to install program and man page
#
INSTALL = install
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644

#
# where to install the program and man page
#

prefix = $(PREFIX)
exec_prefix = $(prefix)
bindir = $(exec_prefix)/usr/bin
mandir = $(prefix)/man/man1

CPPFLAGS = -I. -I$(srcdir) $(DEFS)

.c.o:
	$(CC) -c $(CPPFLAGS) $(CFLAGS) $<

.l.c:
	$(LEX) -t $< > $@


#
# files needed to build the program
# the $U macro will be empty if the compiler supports prototypes,
# and have just an underscore if it does not - see targets below
#

SRCS	= scan.l csize.c
OBJS	= scan.o csize.o
HDRS	= scan.h
LIBS	=


all: csize

csize:	$(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)


$(OBJS): csize.h
scan.o: scan.h




install: csize
	$(INSTALL_PROGRAM) csize     $(bindir)
	$(INSTALL_DATA)    csize.1   $(mandir)




scan.c.flex: scan.c
	mv $? $@

clean:
	rm -f scan.c _csize.c _scan.c *.o csize



#
# for configuration etc.
#
Makefile: Makefile.in config.status
	$(SHELL) config.status
config.status: configure
	$(SHELL) config.status --recheck
configure: configure.in
	cd $(srcdir); autoconf