1 #Copyright 1989, 1990, 1991, 1992, 1993, 1995 Free Software Foundation, Inc.
3 # This file is part of GDB.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 exec_prefix = @
exec_prefix@
22 host_alias
= @host_alias@
23 target_alias
= @target_alias@
24 program_transform_name
= @program_transform_name@
25 bindir = $(exec_prefix)/bin
26 libdir = $(exec_prefix)/lib
27 tooldir
= $(libdir)/$(target_alias
)
29 datadir = $(prefix)/share
30 mandir = $(prefix)/man
31 man1dir = $(mandir)/man1
32 man2dir = $(mandir)/man2
33 man3dir = $(mandir)/man3
34 man4dir = $(mandir)/man4
35 man5dir = $(mandir)/man5
36 man6dir = $(mandir)/man6
37 man7dir = $(mandir)/man7
38 man8dir = $(mandir)/man8
39 man9dir = $(mandir)/man9
40 infodir = $(prefix)/info
41 includedir = $(prefix)/include
46 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
47 INSTALL_DATA
= @INSTALL_DATA@
51 # Directory containing source files.
55 # Where is the "include" directory? Traditionally ../include or ./include
56 INCLUDE_DIR
= ${srcdir}/..
/..
/include
58 # Where is the "-liberty" library? Typically in ../libiberty.
59 LIBIBERTY
= ..
/..
/libiberty
/libiberty.a
61 # Where is the BFD library? Typically in ../../bfd.
63 BFD
= $(BFD_DIR
)/libbfd.a
64 BFD_SRC
= $(srcdir)/$(BFD_DIR
)
65 BFD_CFLAGS
= -I
$(BFD_DIR
) -I
(BFD_SRC
)
67 # All the includes used for CFLAGS and for lint.
68 # -I. for config files.
69 # -I${srcdir} possibly for regex.h also.
70 INCLUDE_CFLAGS
= -I.
-I
${srcdir} -I
$(INCLUDE_DIR
)
72 # CFLAGS is specifically reserved for setting from the command line
73 # when running make. I.E. "make USER_CFLAGS=-Wmissing-prototypes".
76 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
77 INTERNAL_CFLAGS
= $(CFLAGS
) -I
$(BFD_DIR
) $(INCLUDE_CFLAGS
) $(USER_CFLAGS
) @DEFS@
78 # None of the things in CFLAGS will do any harm, and on some systems
79 # (e.g. SunOS4) it is important to use the MH_CFLAGS.
82 # Libraries and corresponding dependencies for compiling gdb.
83 CLIBS
= ${BFD} ${LIBIBERTY}
84 CDEPS
= ${BFD} ${LIBIBERTY}
86 # Prevent Sun make from putting in the machine type. Setting
87 # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1.
89 ${CC} -c
${INTERNAL_CFLAGS} $<
93 .PHONY
: all info install install-info
99 # This does not use program_transform_name because there only needs to
100 # be one aload. Even if aload ends up being useful for more than one
101 # target, perhaps one aload binary can be useful with all of them.
102 # FIXME: not true, there can be both aout and coff loaders.
104 if
[ "$(PROGS)" != "" ]; then \
105 for i in
$(PROGS
) ""; do \
106 $(INSTALL_PROGRAM
) $$i $(bindir)/$$i; \
113 $(CC
) $(CFLAGS
) -o aload aload.o
$(CLIBS
)
116 $(CC
) $(CFLAGS
) -o eload eload.o
$(CLIBS
) @NETLIBS@
128 rm -f config.log config.cache
130 maintainer-clean
realclean: distclean
132 Makefile
: Makefile.in config.status
133 $(SHELL
) config.status
135 config.status
: configure
136 $(SHELL
) config.status
--recheck