Commit | Line | Data |
---|---|---|
9733ab3f SS |
1 | # Generated automatically from Makefile.in by configure. |
2 | # Copyright 1998 Free Software Foundation, Inc. | |
3 | ||
4 | # This file is part of GDB. | |
5 | ||
6 | # This program is free software; you can redistribute it and/or modify | |
7 | # it under the terms of the GNU General Public License as published by | |
8 | # the Free Software Foundation; either version 2 of the License, or | |
9 | # (at your option) any later version. | |
10 | # | |
11 | # This program is distributed in the hope that it will be useful, | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | # GNU General Public License for more details. | |
15 | # | |
16 | # You should have received a copy of the GNU General Public License | |
17 | # along with this program; if not, write to the Free Software | |
18 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
19 | ||
20 | all: libtui.a | |
21 | ||
22 | srcdir=. | |
23 | ||
24 | SHELL = /bin/sh | |
25 | ||
26 | CC=gcc | |
27 | CFLAGS=-g -O2 | |
28 | AR=ar | |
29 | RANLIB=ranlib | |
30 | ||
31 | # Host and target-dependent makefile fragments come in here. | |
32 | ||
33 | # Host: Sun 4 or Sparcstation, running SunOS 4 | |
34 | XDEPFILES= ser-tcp.o | |
35 | XM_FILE= xm-sun4os4.h | |
36 | NAT_FILE= nm-sun4os4.h | |
37 | NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o sparc-nat.o | |
38 | HOST_IPC=-DBSD_IPC | |
39 | GDBSERVER_DEPFILES= low-sparc.o | |
40 | # Setting XM_CLIBS=-lresolv would let us use the DNS, but that would screw | |
41 | # anyone who wants to use NIS, which includes at least one Cygnus customer | |
42 | # (PR 3593). So leave it this way until/unless we find a resolver which can | |
43 | # get names from either DNS or NIS from the same GDB binary. | |
44 | ||
45 | # Target: Sun 4 or Sparcstation, running SunOS 4 | |
46 | TDEPFILES= sparc-tdep.o solib.o | |
47 | TM_FILE= tm-sun4os4.h | |
48 | # End of host and target-dependent makefile fragments | |
49 | ||
50 | # Where is our "include" directory? Typically $(srcdir)/../include. | |
51 | # This is essentially the header file directory for the library | |
52 | # routines in libiberty. | |
53 | INCLUDE_DIR = $(srcdir)/../../include | |
54 | INCLUDE_CFLAGS = -I$(INCLUDE_DIR) | |
55 | ||
56 | # Configured by the --with-mmalloc option to configure. | |
57 | MMALLOC = | |
58 | MMALLOC_CFLAGS = | |
59 | ||
60 | # Where is the BFD library? Typically in ../bfd. | |
61 | BFD_DIR = ../../bfd | |
62 | BFD_SRC = $(srcdir)/$(BFD_DIR) | |
63 | BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC) | |
64 | ||
65 | # Where is the READLINE library? Typically in ../readline. | |
66 | READLINE_DIR = ../../readline | |
67 | READLINE_SRC = $(srcdir)/$(READLINE_DIR) | |
68 | READLINE_CFLAGS = -I$(READLINE_SRC) | |
69 | ||
70 | # Where is the INTL library? Typically in ../intl. | |
71 | INTL_DIR = ../../intl | |
72 | INTL_SRC = $(srcdir)/$(INTL_DIR) | |
73 | INTL_CFLAGS = -I$(INTL_DIR) -I$(INTL_SRC) | |
74 | ||
75 | # Where is the TCL library? Typically in ../tcl. | |
76 | TCL_CFLAGS = @TCLHDIR@ | |
77 | ||
78 | # Where is the TK library? Typically in ../tk. | |
79 | TK_CFLAGS = @TKHDIR@ @TK_BUILD_INCLUDES@ | |
80 | ||
81 | # Where is Itcl? Typically in ../itcl. | |
82 | ITCL_CFLAGS = @ITCLHDIR@ | |
83 | ||
84 | # Where is Tix? Typically in ../tix. | |
85 | TIX_CFLAGS = @TIXHDIR@ | |
86 | ||
87 | X11_CFLAGS = @TK_XINCLUDES@ | |
88 | ||
89 | ENABLE_IDE= @ENABLE_IDE@ | |
90 | ||
91 | GUI_CFLAGS_X = -I$(srcdir)/../../libgui/src | |
92 | ||
93 | IDE_CFLAGS_X = -I$(srcdir)/../../libidetcl/src -I$(srcdir)/../../libide/src \ | |
94 | `if [ x"$(ENABLE_IDE)" != x ] ; then \ | |
95 | echo -DIDE -I$(srcdir)/../../ilu/runtime/mainloop;\ | |
96 | fi` | |
97 | ||
98 | IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X) | |
99 | ||
100 | ENABLE_CFLAGS= | |
101 | ||
102 | # -I. for config files. | |
103 | # -I$(srcdir) for gdb internal headers and possibly for gnu-regex.h also. | |
104 | # -I$(srcdir)/config for more generic config files. | |
105 | ||
106 | # It is also possible that you will need to add -I/usr/include/sys if | |
107 | # your system doesn't have fcntl.h in /usr/include (which is where it | |
108 | # should be according to Posix). | |
109 | DEFS = -DHAVE_CONFIG_H | |
110 | GDB_CFLAGS = -I. -I.. -I$(srcdir) -I$(srcdir)/.. -I$(srcdir)/../config $(DEFS) | |
111 | ||
112 | # M{H,T}_CFLAGS, if defined, have host- and target-dependent CFLAGS | |
113 | # from the config directory. | |
114 | GLOBAL_CFLAGS = $(MT_CFLAGS) $(MH_CFLAGS) | |
115 | #PROFILE_CFLAGS = -pg | |
116 | ||
117 | # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros. | |
118 | INTERNAL_CFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \ | |
119 | $(GDB_CFLAGS) $(READLINE_CFLAGS) $(BFD_CFLAGS) \ | |
120 | $(MMALLOC_CFLAGS) $(INCLUDE_CFLAGS) $(INTL_CFLAGS) \ | |
121 | $(ENABLE_CFLAGS) | |
122 | ||
123 | HEADERS = tuiIO.h tuiData.h tuiGeneralWin.h tuiLayout.h tuiStack.h \ | |
124 | tuiSource.h tuiCommand.h tuiWin.h tuiDisassem.h \ | |
125 | tuiSourceWin.h tuiRegs.h tuiDataWin.h | |
126 | ||
127 | SOURCES = tui.c tuiData.c tuiSource.c tuiStack.c tuiIO.c \ | |
128 | tuiGeneralWin.c tuiLayout.c tuiWin.c tuiCommand.c \ | |
129 | tuiDisassem.c tuiSourceWin.c tuiRegs.c tuiDataWin.c | |
130 | ||
131 | OBJECTS = tui.o tuiData.o tuiSource.o tuiStack.o tuiIO.o \ | |
132 | tuiGeneralWin.o tuiLayout.o tuiWin.o tuiCommand.o \ | |
133 | tuiDisassem.o tuiSourceWin.o tuiRegs.o tuiDataWin.o \ | |
134 | tuiInit.o | |
135 | ||
136 | ||
137 | # Prevent Sun make from putting in the machine type. Setting | |
138 | # TARGET_ARCH to nothing works for SunOS 3, 4.0, but not for 4.1. | |
139 | .c.o: | |
140 | $(CC) -c $(INTERNAL_CFLAGS) $< | |
141 | .SUFFIXES: .cpp | |
142 | .c.cpp: | |
143 | $(CC) -E $(INTERNAL_CFLAGS) $< > $@ | |
144 | ||
145 | libtui.a: $(OBJECTS) | |
146 | rm -f libtui.a | |
147 | $(AR) rc libtui.a $(OBJECTS) | |
148 | $(RANLIB) libtui.a | |
149 | ||
150 | tui.o: tui.c tui.h tuiData.h tuiLayout.h tuiIO.h tuiRegs.h tuiWin.h | |
151 | tuiCommand.o: tui.h tuiData.h tuiWin.h tuiIO.h | |
152 | tuiData.o: tui.h tuiData.h | |
153 | tuiDataWin.o: tui.h tuiData.h tuiRegs.h | |
154 | tuiDisassem.o: tui.h tuiData.h tuiLayout.h tuiSourceWin.h tuiStack.h | |
155 | tuiGeneralWin.o: tui.h tuiData.h tuiGeneralWin.h | |
156 | tuiIO.o: tui.h tuiData.h tuiIO.h tuiCommand.h tuiWin.h | |
157 | tuiLayout.o: tui.h tuiData.h tuiGeneralWin.h tuiStack.h tuiRegs.h \ | |
158 | tuiDisassem.h | |
159 | tuiRegs.o: tui.h tuiData.h tuiLayout.h tuiWin.h | |
160 | tuiSource.o: tui.h tuiData.h tuiStack.h tuiSourceWin.h tuiSource.h | |
161 | tuiSourceWin.o: tui.h tuiData.h tuiStack.h tuiSourceWin.h tuiSource.h \ | |
162 | tuiDisassem.h | |
163 | tuiStack.o: tui.h tuiData.h tuiStack.h tuiSourceWin.h | |
164 | tuiWin.o: tui.h tuiData.h tuiGeneralWin.h tuiStack.h tuiSourceWin.h \ | |
165 | tuiDataWin.h | |
166 | ||
167 | tuiInit.o: tuiInit.c | |
168 | tuiInit.c: $(SOURCES) | |
169 | @echo Making tuiInit.c | |
170 | @rm -f init.c-tmp | |
171 | @echo '/* Do not modify this file. */' >init.c-tmp | |
172 | @echo '/* It is created automatically by the Makefile. */'>>init.c-tmp | |
173 | @echo '#include "ansidecl.h"' >>init.c-tmp | |
174 | @echo 'extern void initialize_tui_files PARAMS ((void));' >>init.c-tmp | |
175 | @echo 'void initialize_tui_files PARAMS ((void)) {' >>init.c-tmp | |
176 | @-( cd $(srcdir) ; grep '^_initialize_[a-z_0-9A-Z]* *(' $(SOURCES) ) 2>/dev/null \ | |
177 | | sed -e 's/^.*://' -e 's/^\([a-z_0-9A-Z]*\).*/ {extern void \1 PARAMS ((void)); \1 ();}/' >>init.c-tmp | |
178 | @echo '}' >>init.c-tmp | |
179 | @mv init.c-tmp tuiInit.c | |
180 | ||
181 | clean: | |
182 | rm -f *.o *.a |