2011-02-11 Yao Qi <yao@codesourcery.com>
[platform/upstream/binutils.git] / gdb / common / Makefile.in
1
2 srcdir = @srcdir@
3 ACLOCAL = @ACLOCAL@
4 AUTOCONF = @AUTOCONF@
5 AUTOHEADER = @AUTOHEADER@
6 RANLIB = @RANLIB@
7 COMMON_CPU_OBJ = @COMMON_CPU_OBJ@
8
9 BFD_DIR = ../../bfd
10 BFD_SRC = $(srcdir)/$(BFD_DIR)
11 BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
12
13 INCLUDES = -I. -I../ -I$(srcdir) -I$(srcdir)/../../include @GDB_INCLUDE@
14
15 libcommon_a_OBJS = signals.o $(COMMON_CPU_OBJ)
16 libcommon_a_SOURCES = signals.c $(COMMON_CPU_SRC)
17
18 all: libcommon.a
19
20 signals.o: $(srcdir)/signals.c
21         $(COMPILE) $(srcdir)/signals.c
22
23 COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) @GDB_FLAGS@ $(CPPFLAGS) $(ALL_CFLAGS) -c
24
25 # Implicit rules
26
27 .c.o:
28         $(COMPILE) $(srcdir)/$<
29
30
31 .SUFFIXES:
32 .SUFFIXES: .c .o .obj
33
34 libcommon.a: $(libcommon_a_OBJS)
35         -rm -f $@
36         $(AR) $(ARFLAGS) $@ $(libcommon_a_OBJS)
37         $(RANLIB) $@
38
39 # Rules to rebuild the configuration
40
41 Makefile: $(srcdir)/Makefile.in config.status
42         $(SHELL) ./config.status Makefile
43
44 config.status: $(srcdir)/configure
45         $(SHELL) ./config.status --recheck
46
47 $(srcdir)/configure: $(srcdir)/aclocal.m4
48         cd $(srcdir) && $(AUTOCONF)
49
50 aclocal_deps = \
51         $(srcdir)/../../config/stdint.m4 \
52         $(srcdir)/../../config/warnings.m4 \
53         $(srcdir)/../../config/override.m4 \
54         $(srcdir)/configure.ac
55
56 $(srcdir)/aclocal.m4: $(aclocal_deps)
57         cd $(srcdir) && $(ACLOCAL) -I ../config
58
59 config.h: stamp-h1
60         test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
61
62 stamp-h1: $(srcdir)/config.in config.status
63         -rm -f stamp-h1
64         $(SHELL) ./config.status config.h
65
66 $(srcdir)/config.in: $(srcdir)/configure
67         cd $(srcdir) && $(AUTOHEADER)
68         -rm -f stamp-h1
69
70 clean mostlyclean:
71         -rm -f *~ *.o a.out
72         -rm libcommon.a
73
74 distclean maintainer-clean realclean: clean
75         -rm -f *~
76         -rm -f Makefile config.status config.log