Move low-level Linux x86 debug register code to a shared file
[deliverable/binutils-gdb.git] / gdb / gdbserver / Makefile.in
index 18486c62670d65e4a000d7bd1e11522f23e21086..9d698c6a23d4f5643f71473a9f08983196b1003a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1989-2014 Free Software Foundation, Inc.
+# Copyright (C) 1989-2015 Free Software Foundation, Inc.
 
 # This file is part of GDB.
 
@@ -49,7 +49,11 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 RANLIB = @RANLIB@
 
+# The name of the compiler to use.
+COMPILER = @COMPILER@
+
 CC = @CC@
+CXX = @CXX@
 AR = @AR@
 AR_FLAGS = rc
 
@@ -60,7 +64,7 @@ depcomp = $(SHELL) $(srcdir)/../depcomp
 
 # Note that these are overridden by GNU make-specific code below if
 # GNU make is used.  The overrides implement dependency tracking.
-COMPILE.pre = $(CC)
+COMPILE.pre = $(COMPILER)
 COMPILE.post = -c -o $@
 COMPILE = $(COMPILE.pre) $(INTERNAL_CFLAGS) $(COMPILE.post)
 POSTCOMPILE = @true
@@ -78,8 +82,8 @@ VPATH = @srcdir@
 
 # Set this up with gcc if you have gnu ld and the loader will print out
 # line numbers for undefinded refs.
-#CC-LD=gcc -static
-CC-LD=${CC}
+#CC_LD=gcc -static
+CC_LD=$(COMPILER)
 
 # Where is the "include" directory?  Traditionally ../include or ./include
 INCLUDE_DIR =  ${srcdir}/../../include
@@ -128,10 +132,11 @@ WARN_CFLAGS_NO_FORMAT = `echo " $(WARN_CFLAGS) " \
 # CFLAGS is specifically reserved for setting from the command line
 # when running make.  I.E.  "make CFLAGS=-Wmissing-prototypes".
 CFLAGS = @CFLAGS@
+CPPFLAGS = @CPPFLAGS@
 
 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
 INTERNAL_CFLAGS_BASE =  ${CFLAGS} ${GLOBAL_CFLAGS} \
-       ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS}
+       ${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS}
 INTERNAL_WARN_CFLAGS =  ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
 INTERNAL_CFLAGS =  ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
 
@@ -147,14 +152,15 @@ SFILES=   $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \
        $(srcdir)/proc-service.list $(srcdir)/regcache.c \
        $(srcdir)/remote-utils.c $(srcdir)/server.c $(srcdir)/target.c \
        $(srcdir)/thread-db.c $(srcdir)/utils.c $(srcdir)/debug.c \
+       $(srcdir)/linux-aarch64-low.c \
        $(srcdir)/linux-arm-low.c $(srcdir)/linux-bfin-low.c \
        $(srcdir)/linux-cris-low.c $(srcdir)/linux-crisv32-low.c \
-       ${srcdir}/i386-low.c $(srcdir)/i387-fp.c \
+       ${srcdir}/x86-low.c $(srcdir)/i387-fp.c \
        $(srcdir)/linux-ia64-low.c $(srcdir)/linux-low.c \
        $(srcdir)/linux-m32r-low.c \
        $(srcdir)/linux-m68k-low.c $(srcdir)/linux-mips-low.c \
        $(srcdir)/linux-nios2-low.c \
-       $(srcdir)/linux-ppc-low.c \
+       $(srcdir)/linux-ppc-low.c $(srcdir)/nat/ppc-linux.c \
        $(srcdir)/linux-s390-low.c \
        $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
        $(srcdir)/linux-x86-low.c \
@@ -166,11 +172,15 @@ SFILES=   $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \
        $(srcdir)/common/vec.c $(srcdir)/common/gdb_vecs.c \
        $(srcdir)/common/common-utils.c $(srcdir)/common/xml-utils.c \
        $(srcdir)/nat/linux-osdata.c $(srcdir)/common/ptid.c \
+       $(srcdir)/nat/linux-personality.c \
        $(srcdir)/common/buffer.c $(srcdir)/nat/linux-btrace.c \
        $(srcdir)/common/filestuff.c $(srcdir)/target/waitstatus.c \
        $(srcdir)/nat/mips-linux-watch.c $(srcdir)/common/print-utils.c \
        $(srcdir)/common/rsp-low.c $(srcdir)/common/errors.c \
-       $(srcdir)/common/common-debug.c
+       $(srcdir)/common/common-debug.c $(srcdir)/common/cleanups.c \
+       $(srcdir)/common/common-exceptions.c $(srcdir)/symbol.c \
+       $(srcdir)/common/btrace-common.c \
+       $(srcdir)/common/common-remote-fileio.c
 
 DEPFILES = @GDBSERVER_DEPFILES@
 
@@ -183,7 +193,8 @@ OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o \
       target.o waitstatus.o utils.o debug.o version.o vec.o gdb_vecs.o \
       mem-break.o hostio.o event-loop.o tracepoint.o xml-utils.o \
       common-utils.o ptid.o buffer.o format.o filestuff.o dll.o notif.o \
-      tdesc.o print-utils.o rsp-low.o errors.o common-debug.o \
+      tdesc.o print-utils.o rsp-low.o errors.o common-debug.o cleanups.o \
+      common-exceptions.o symbol.o btrace-common.o common-remote-fileio.o \
       $(XML_BUILTIN) $(DEPFILES) $(LIBOBJS)
 GDBREPLAY_OBS = gdbreplay.o version.o
 GDBSERVER_LIBS = @GDBSERVER_LIBS@
@@ -289,7 +300,7 @@ clean-info: force
 
 gdbserver$(EXEEXT): $(OBS) ${ADD_DEPS} ${CDEPS} $(LIBGNU) $(LIBIBERTY)
        rm -f gdbserver$(EXEEXT)
-       ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
+       $(CC_LD) $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbserver$(EXEEXT) $(OBS) \
        $(LIBGNU) $(LIBIBERTY) $(GDBSERVER_LIBS) $(XM_CLIBS)
 
 $(LIBGNU) $(LIBIBERTY) $(GNULIB_H): all-lib
@@ -299,7 +310,7 @@ all-lib: $(GNULIB_BUILDDIR)/Makefile $(LIBIBERTY_BUILDDIR)/Makefile
 
 gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
        rm -f gdbreplay$(EXEEXT)
-       ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
+       $(CC_LD) $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
          $(XM_CLIBS) $(LIBGNU) $(LIBIBERTY)
 
 IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o \
@@ -311,7 +322,7 @@ IPA_LIB=libinproctrace.so
 
 $(IPA_LIB): $(IPA_OBJS) ${ADD_DEPS} ${CDEPS}
        rm -f $(IPA_LIB)
-       ${CC-LD} -shared -fPIC -Wl,--no-undefined $(INTERNAL_CFLAGS) \
+       $(CC_LD) -shared -fPIC -Wl,--no-undefined $(INTERNAL_CFLAGS) \
        $(INTERNAL_LDFLAGS) -o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread
 
 # Put the proper machine-specific files first, so M-. on a machine
@@ -341,7 +352,8 @@ clean:
        rm -f reg-tilegx.c reg-tilegx32.c
        rm -f arm-with-iwmmxt.c
        rm -f arm-with-vfpv2.c arm-with-vfpv3.c arm-with-neon.c
-       rm -f mips-linux.c mips64-linux.c
+       rm -f mips-linux.c mips-dsp-linux.c
+       rm -f mips64-linux.c mips64-dsp-linux.c
        rm -f nios2-linux.c
        rm -f powerpc-32.c powerpc-32l.c powerpc-64l.c powerpc-e500l.c
        rm -f powerpc-altivec32l.c powerpc-cell32l.c powerpc-vsx32l.c
@@ -352,7 +364,9 @@ clean:
        rm -f s390-linux32.c s390-linux64.c s390x-linux64.c
        rm -f s390-linux32v1.c s390-linux32v2.c s390-linux64v1.c
        rm -f s390-linux64v2.c s390x-linux64v1.c s390x-linux64v2.c
-       rm -f s390-te-linux32.c s390-te-linux64.c
+       rm -f s390-te-linux64.c s390x-te-linux64.c
+       rm -f s390-vx-linux64.c s390x-vx-linux64.c
+       rm -f s390-tevx-linux64.c s390x-tevx-linux64.c
        rm -f tic6x-c64xp-linux.c tic6x-c64x-linux.c tic6x-c62x-linux.c
        rm -f xml-builtin.c stamp-xml
        rm -f i386-avx.c i386-avx-linux.c
@@ -445,7 +459,7 @@ UST_CFLAGS = $(ustinc) -DCONFIG_UST_GDB_INTEGRATION
 
 # Note, we only build the IPA if -fvisibility=hidden is supported in
 # the first place.
-IPAGENT_CFLAGS = $(CPPFLAGS) $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
+IPAGENT_CFLAGS = $(INTERNAL_CFLAGS) $(UST_CFLAGS) \
        -fPIC -DIN_PROCESS_AGENT \
        -fvisibility=hidden
 
@@ -514,6 +528,12 @@ rsp-low.o: ../common/rsp-low.c
 common-utils.o: ../common/common-utils.c
        $(COMPILE) $<
        $(POSTCOMPILE)
+posix-strerror.o: ../common/posix-strerror.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
+mingw-strerror.o: ../common/mingw-strerror.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
 vec.o: ../common/vec.c
        $(COMPILE) $<
        $(POSTCOMPILE)
@@ -544,13 +564,22 @@ errors.o: ../common/errors.c
 common-debug.o: ../common/common-debug.c
        $(COMPILE) $<
        $(POSTCOMPILE)
+cleanups.o: ../common/cleanups.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
+common-exceptions.o: ../common/common-exceptions.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
 waitstatus.o: ../target/waitstatus.c
        $(COMPILE) $<
        $(POSTCOMPILE)
+common-remote-fileio.o: ../common/common-remote-fileio.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
 
 # Native object files rules from ../nat
 
-i386-dregs.o: ../nat/i386-dregs.c
+x86-dregs.o: ../nat/x86-dregs.c
        $(COMPILE) $<
        $(POSTCOMPILE)
 linux-btrace.o: ../nat/linux-btrace.c
@@ -571,6 +600,21 @@ linux-waitpid.o: ../nat/linux-waitpid.c
 mips-linux-watch.o: ../nat/mips-linux-watch.c
        $(COMPILE) $<
        $(POSTCOMPILE)
+ppc-linux.o: ../nat/ppc-linux.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
+linux-personality.o: ../nat/linux-personality.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
+btrace-common.o: ../common/btrace-common.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
+x86-linux.o: ../nat/x86-linux.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
+x86-linux-dregs.o: ../nat/x86-linux-dregs.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
 
 aarch64.c : $(srcdir)/../regformats/aarch64.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/aarch64.dat aarch64.c
@@ -674,6 +718,10 @@ s390-linux64v2.c : $(srcdir)/../regformats/s390-linux64v2.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-linux64v2.dat s390-linux64v2.c
 s390-te-linux64.c : $(srcdir)/../regformats/s390-te-linux64.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-te-linux64.dat s390-te-linux64.c
+s390-vx-linux64.c : $(srcdir)/../regformats/s390-vx-linux64.dat $(regdat_sh)
+       $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-vx-linux64.dat s390-vx-linux64.c
+s390-tevx-linux64.c : $(srcdir)/../regformats/s390-tevx-linux64.dat $(regdat_sh)
+       $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390-tevx-linux64.dat s390-tevx-linux64.c
 s390x-linux64.c : $(srcdir)/../regformats/s390x-linux64.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64.dat s390x-linux64.c
 s390x-linux64v1.c : $(srcdir)/../regformats/s390x-linux64v1.dat $(regdat_sh)
@@ -682,6 +730,10 @@ s390x-linux64v2.c : $(srcdir)/../regformats/s390x-linux64v2.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-linux64v2.dat s390x-linux64v2.c
 s390x-te-linux64.c : $(srcdir)/../regformats/s390x-te-linux64.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-te-linux64.dat s390x-te-linux64.c
+s390x-vx-linux64.c : $(srcdir)/../regformats/s390x-vx-linux64.dat $(regdat_sh)
+       $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-vx-linux64.dat s390x-vx-linux64.c
+s390x-tevx-linux64.c : $(srcdir)/../regformats/s390x-tevx-linux64.dat $(regdat_sh)
+       $(SHELL) $(regdat_sh) $(srcdir)/../regformats/s390x-tevx-linux64.dat s390x-tevx-linux64.c
 
 tic6x-c64xp-linux.c : $(srcdir)/../regformats/tic6x-c64xp-linux.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/tic6x-c64xp-linux.dat tic6x-c64xp-linux.c
This page took 0.028649 seconds and 4 git commands to generate.