93 lines
2.4 KiB
Makefile
93 lines
2.4 KiB
Makefile
# Copyright (C) 2011
|
|
# Free Software Foundation, Inc.
|
|
#
|
|
# This file is part of GDB.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
srcdir = @srcdir@
|
|
ACLOCAL = @ACLOCAL@
|
|
AUTOCONF = @AUTOCONF@
|
|
AUTOHEADER = @AUTOHEADER@
|
|
RANLIB = @RANLIB@
|
|
COMMON_CPU_OBJ = @COMMON_CPU_OBJ@
|
|
|
|
BFD_DIR = ../../bfd
|
|
BFD_SRC = $(srcdir)/$(BFD_DIR)
|
|
BFD_CFLAGS = -I$(BFD_DIR) -I$(BFD_SRC)
|
|
|
|
INCLUDES = -I. -I../ -I$(srcdir) -I$(srcdir)/../../include @GDB_INCLUDE@
|
|
|
|
libcommon_a_OBJS = signals.o $(COMMON_CPU_OBJ)
|
|
libcommon_a_SOURCES = signals.c $(COMMON_CPU_SRC)
|
|
|
|
all: libcommon.a
|
|
|
|
signals.o: $(srcdir)/signals.c
|
|
$(COMPILE) $(srcdir)/signals.c
|
|
|
|
COMPILE = source='$<' object='$@' libtool=no $(CC) $(DEFS) $(INCLUDES) @GDB_FLAGS@ $(CPPFLAGS) $(ALL_CFLAGS) -c
|
|
|
|
# Implicit rules
|
|
|
|
.c.o:
|
|
$(COMPILE) $(srcdir)/$<
|
|
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .c .o .obj
|
|
|
|
libcommon.a: $(libcommon_a_OBJS)
|
|
-rm -f $@
|
|
$(AR) $(ARFLAGS) $@ $(libcommon_a_OBJS)
|
|
$(RANLIB) $@
|
|
|
|
# Rules to rebuild the configuration
|
|
|
|
Makefile: $(srcdir)/Makefile.in config.status
|
|
$(SHELL) ./config.status Makefile
|
|
|
|
config.status: $(srcdir)/configure
|
|
$(SHELL) ./config.status --recheck
|
|
|
|
$(srcdir)/configure: $(srcdir)/aclocal.m4
|
|
cd $(srcdir) && $(AUTOCONF)
|
|
|
|
aclocal_deps = \
|
|
$(srcdir)/../../config/stdint.m4 \
|
|
$(srcdir)/../../config/warnings.m4 \
|
|
$(srcdir)/../../config/override.m4 \
|
|
$(srcdir)/configure.ac
|
|
|
|
$(srcdir)/aclocal.m4: $(aclocal_deps)
|
|
cd $(srcdir) && $(ACLOCAL) -I ../config
|
|
|
|
config.h: stamp-h1
|
|
test -f config.h || (rm -f stamp-h1 && $(MAKE) stamp-h1)
|
|
|
|
stamp-h1: $(srcdir)/config.in config.status
|
|
-rm -f stamp-h1
|
|
$(SHELL) ./config.status config.h
|
|
|
|
$(srcdir)/config.in: $(srcdir)/configure
|
|
cd $(srcdir) && $(AUTOHEADER)
|
|
-rm -f stamp-h1
|
|
|
|
clean mostlyclean:
|
|
-rm -f *~ *.o a.out
|
|
-rm libcommon.a
|
|
|
|
distclean maintainer-clean realclean: clean
|
|
-rm -f *~
|
|
-rm -f Makefile config.status config.log
|