1 |
# Makefile for makedepend |
2 |
# |
3 |
# @configure_input@ |
4 |
# Copyright (c) 1998-2000 Carnegie Mellon University. All rights reserved. |
5 |
# |
6 |
# Redistribution and use in source and binary forms, with or without |
7 |
# modification, are permitted provided that the following conditions |
8 |
# are met: |
9 |
# |
10 |
# 1. Redistributions of source code must retain the above copyright |
11 |
# notice, this list of conditions and the following disclaimer. |
12 |
# |
13 |
# 2. Redistributions in binary form must reproduce the above copyright |
14 |
# notice, this list of conditions and the following disclaimer in |
15 |
# the documentation and/or other materials provided with the |
16 |
# distribution. |
17 |
# |
18 |
# 3. The name "Carnegie Mellon University" must not be used to |
19 |
# endorse or promote products derived from this software without |
20 |
# prior written permission. For permission or any other legal |
21 |
# details, please contact |
22 |
# Office of Technology Transfer |
23 |
# Carnegie Mellon University |
24 |
# 5000 Forbes Avenue |
25 |
# Pittsburgh, PA 15213-3890 |
26 |
# (412) 268-4387, fax: (412) 268-7395 |
27 |
# tech-transfer@andrew.cmu.edu |
28 |
# |
29 |
# 4. Redistributions of any form whatsoever must retain the following |
30 |
# acknowledgment: |
31 |
# "This product includes software developed by Computing Services |
32 |
# at Carnegie Mellon University (http://www.cmu.edu/computing/)." |
33 |
# |
34 |
# CARNEGIE MELLON UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO |
35 |
# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY |
36 |
# AND FITNESS, IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY BE LIABLE |
37 |
# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
38 |
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN |
39 |
# AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING |
40 |
# OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
41 |
# |
42 |
# |
43 |
srcdir = @srcdir@ |
44 |
VPATH = @srcdir@ |
45 |
|
46 |
CC = @CC@ |
47 |
INSTALL = @INSTALL@ |
48 |
RANLIB = @RANLIB@ |
49 |
|
50 |
DEFS = @DEFS@ |
51 |
CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@ |
52 |
LIBS = @LIBS@ |
53 |
DEPLIBS = @DEPLIBS@ |
54 |
|
55 |
CFLAGS = @CFLAGS@ |
56 |
LDFLAGS = @LDFLAGS@ |
57 |
|
58 |
SHELL = /bin/sh |
59 |
|
60 |
all: makedepend |
61 |
|
62 |
.c.o: |
63 |
$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $< |
64 |
|
65 |
makedepend: cppsetup.o ifparser.o include.o main.o parse.o pr.o |
66 |
$(CC) $(LDFLAGS) -o makedepend cppsetup.o ifparser.o include.o \ |
67 |
main.o parse.o pr.o $(DEPLIBS) $(LIBS) |
68 |
|
69 |
clean: |
70 |
rm -f *.o Makefile.bak makedepend |
71 |
|
72 |
distclean: clean |
73 |
rm -f Makefile |
74 |
|
75 |
depend: |
76 |
makedepend $(CPPFLAGS) $(DEFS) $(CFLAGS) *.c $(srcdir)/*.c 1>makedepend.log 2>&1 |
77 |
|
78 |
# DO NOT DELETE THIS LINE -- make depend depends on it. |
79 |
|