File: Makefile

package info (click to toggle)
cxref 1.4-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,392 kB
  • ctags: 1,519
  • sloc: ansic: 16,776; sh: 2,233; yacc: 1,906; lex: 377; lisp: 256; makefile: 249; perl: 70
file content (77 lines) | stat: -rw-r--r-- 1,597 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# $Header: /home/amb/cxref/cpp/RCS/Makefile 1.11 1997/11/20 19:55:34 amb Exp $
#
# C Cross Referencing & Documentation tool. Version 1.4a.
#
# CPP Makefile.
#
# Written by Andrew M. Bishop
#
# This file Copyright 1995,96 Andrew M. Bishop
# It may be distributed under the GNU Public License, version 2, or
# any higher version.  See section COPYING of the GNU Public license
# for conditions under which this file may be redistributed.
#

# Standard definitions, edit ../Makefile.config not this one.
include ../Makefile.config

# Auto generated Makefile configuration definitions.
include ./Makefile.cpp

########

INCLUDE=
LIBRARY=

COMPILE=$(CC) -c -w $(CFLAGS) -DNEED_SVR4_STRINGS=$(SVR4_STRINGS)

LINK=$(LD) $(LDFLAGS)

########

OBJ_FILES=cccp.o cexp.o version.o

####

cxref-cpp : Makefile.cpp $(OBJ_FILES)
	[ $(CONFIG_STATUS) ] || $(LINK) $(OBJ_FILES) -o $@ $(LIBRARY)
	@touch $@

########

configure Makefile.cpp: config-cpp
	-CC='$(CC)' ./config-cpp

########

clean :
	-rm -f cxref-cpp core *.o *~ y.tab.c Makefile.cpp

########

cexp.c : cexp.y
	[ $(CONFIG_STATUS) ] || $(YACC) cexp.y
	@touch $@
	@mv y.tab.c cexp.c

####

cccp.o: cccp.c config.h tm.h pcp.h
	[ $(CONFIG_STATUS) ] || $(COMPILE) cccp.c -o $@ $(INCLUDE) \
	 '-DLOCAL_INCLUDE_DIR="$(INCLUDE_DIR1)"' \
	 '-DTOOL_INCLUDE_DIR="$(INCLUDE_DIR2)"' \
	 '-DGCC_INCLUDE_DIR="$(INCLUDE_DIR3)"' \
	 '-DGPLUSPLUS_INCLUDE_DIR="."' \
	 '-DCPP_PREDEFINES="$(PREDEFINES)"'
	@touch $@

####

%.o:%.c
	[ $(CONFIG_STATUS) ] || $(COMPILE) $< -o $@ $(INCLUDE)
	@touch $@

version.o    : version.c
cexp.o       : cexp.c config.h tm.h

########