1 # $Id: Makefile.in 709 2009-07-04 05:29:28Z dhiebert $
3 # Makefile for UNIX-like platforms.
6 # These are the names of the installed programs, in case you wish to change
12 # Set this to the path to your shell (must run Bourne shell commands).
16 # GNU Autoconf variables. These are set by the "configure" script when it
19 exec_prefix = @
exec_prefix@
20 datarootdir
= @datarootdir@
37 # If you cannot run the "configure" script to set the variables above, then
38 # uncomment the defines below and customize them for your environment. If
39 # your system does not support symbolic (soft) links, then remove the -s
43 #bindir = /usr/local/bin
44 #mandir = /usr/local/man
48 #DEFS = -DHAVE_CONFIG_H
52 include $(srcdir)/source.mak
55 #--- You should not need to modify anything below this line. ---#
59 .SUFFIXES
: .c .
$(OBJEXT
)
64 INSTALL_PROG
= $(INSTALL
)
65 INSTALL_DATA
= $(INSTALL
)
67 READ_LIB
= readtags.
$(OBJEXT
)
72 AUTO_GEN
= configure config.h.in
73 CONFIG_GEN
= config.cache config.log config.status config.run config.h Makefile
76 # names for installed man pages
79 man1dir = $(mandir)/man1
80 CMAN
= $(CTAGS_PROG
).
$(manext)
81 EMAN
= $(ETAGS_PROG
).
$(manext)
84 # destinations for installed files
86 CTAGS_EXEC
= $(CTAGS_PROG
)$(EXEEXT
)
87 ETAGS_EXEC
= $(ETAGS_PROG
)$(EXEEXT
)
88 DEST_CTAGS
= $(bindir)/$(CTAGS_EXEC
)
89 DEST_ETAGS
= $(bindir)/$(ETAGS_EXEC
)
90 DEST_READ_LIB
= $(libdir)/$(READ_LIB
)
91 DEST_READ_INC
= $(incdir
)/$(READ_INC
)
92 DEST_CMAN
= $(man1dir)/$(CMAN
)
93 DEST_EMAN
= $(man1dir)/$(EMAN
)
98 all: $(CTAGS_EXEC
) $(READ_LIB
)
100 $(CTAGS_EXEC
): $(OBJECTS
)
101 $(CC
) $(LDFLAGS
) -o
$@
$(OBJECTS
) $(LIBS
)
103 dctags
$(EXEEXT
): debug.c
$(SOURCES
) $(HEADERS
)
104 $(CC
) -I.
-I
$(srcdir) $(DEFS
) -DDEBUG
-g
$(LDFLAGS
) -o
$@ debug.c
$(SOURCES
)
106 readtags
$(EXEEXT
): readtags.c readtags.h
107 $(CC
) -DREADTAGS_MAIN
-I.
-I
$(srcdir) $(DEFS
) $(CFLAGS
) $(LDFLAGS
) -o
$@ readtags.c
109 ETYPEREF_OBJS
= etyperef.o keyword.o routines.o strlist.o vstring.o
110 etyperef
$(EXEEXT
): $(ETYPEREF_OBJS
)
111 $(CC
) $(LDFLAGS
) -o
$@
$(ETYPEREF_OBJS
)
114 $(CC
) -DTYPE_REFERENCE_TOOL
-I.
-I
$(srcdir) $(DEFS
) $(CFLAGS
) -o
$@
-c eiffel.c
116 $(OBJECTS
): $(HEADERS
) config.h
119 # generic install rules
121 install: @install_targets@
123 install-strip
: install
125 install-ctags
: install-cbin install-cman
126 install-etags
: install-ebin install-eman
128 $(bindir) $(man1dir) $(libdir) $(incdir
):
129 $(srcdir)/mkinstalldirs
$@
134 # install the executables
136 install-bin
: install-cbin install-ebin install-lib
137 install-cbin
: $(DEST_CTAGS
)
138 install-ebin
: $(DEST_ETAGS
)
139 install-lib
: $(DEST_READ_LIB
) $(DEST_READ_INC
)
141 $(DEST_CTAGS
): $(CTAGS_EXEC
) $(bindir) FORCE
142 $(INSTALL_PROG
) $(CTAGS_EXEC
) $@
&& chmod
755 $@
145 - if
[ -x
$(DEST_CTAGS
) ]; then \
146 cd
$(bindir) && $(SLINK
) $(CTAGS_EXEC
) $(ETAGS_EXEC
); \
150 # install the man pages
152 install-man
: install-cman install-eman
153 install-cman
: $(DEST_CMAN
)
154 install-eman
: $(DEST_EMAN
)
156 $(DEST_CMAN
): $(man1dir) $(MANPAGE
) FORCE
157 - $(INSTALL_DATA
) $(srcdir)/$(MANPAGE
) $@
&& chmod
644 $@
160 - if
[ -f
$(DEST_CMAN
) ]; then \
161 cd
$(man1dir) && $(SLINK
) $(CMAN
) $(EMAN
); \
165 # install the library
167 $(DEST_READ_LIB
): $(READ_LIB
) $(libdir) FORCE
168 $(INSTALL_PROG
) $(READ_LIB
) $@
&& chmod
644 $@
170 $(DEST_READ_INC
): $(READ_INC
) $(incdir
) FORCE
171 $(INSTALL_PROG
) $(READ_INC
) $@
&& chmod
644 $@
175 # rules for uninstalling
177 uninstall: uninstall-bin uninstall-lib uninstall-man
180 - rm -f
$(DEST_CTAGS
) $(DEST_ETAGS
)
183 - rm -f
$(DEST_READ_LIB
) $(DEST_READ_INC
)
186 - rm -f
$(DEST_CMAN
) $(DEST_EMAN
)
189 - rm -f
$(DEST_CTAGS
) $(DEST_CMAN
)
192 - rm -f
$(DEST_ETAGS
) $(DEST_EMAN
)
195 # miscellaneous rules
198 .
/$(CTAGS_EXEC
) $(srcdir)/*
201 .
/$(CTAGS_EXEC
) -e
$(srcdir)/*
204 rm -f
$(OBJECTS
) $(CTAGS_EXEC
) tags TAGS
$(READ_LIB
)
205 rm -f dctags
$(EXEEXT
) readtags
$(EXEEXT
)
206 rm -f etyperef
$(EXEEXT
) etyperef.
$(OBJEXT
)
213 maintainerclean
: distclean
220 $(CC
) -I.
-I
$(srcdir) $(DEFS
) $(CFLAGS
) -c
$<