[GDBserver] Multi-process + multi-arch
[deliverable/binutils-gdb.git] / gdb / gdbserver / Makefile.in
index ee2c400f0b038d067d8c73bdfe367984324e0c9f..e8470a817497f4510379c82b572db6923cfc85de 100644 (file)
@@ -41,7 +41,7 @@ infodir = @infodir@
 htmldir = $(prefix)/html
 includedir = @includedir@
 
-SHELL = /bin/sh
+SHELL = @SHELL@
 EXEEXT = @EXEEXT@
 
 INSTALL = @INSTALL@
@@ -143,6 +143,7 @@ SFILES=     $(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.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-s390-low.c \
        $(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
@@ -155,7 +156,8 @@ 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)/common/linux-osdata.c $(srcdir)/common/ptid.c \
-       $(srcdir)/common/buffer.c
+       $(srcdir)/common/buffer.c $(srcdir)/common/linux-btrace.c \
+       $(srcdir)/common/filestuff.c
 
 DEPFILES = @GDBSERVER_DEPFILES@
 
@@ -167,8 +169,8 @@ TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
 OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o target.o \
        utils.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 \
-       dll.o notif.o \
+       xml-utils.o common-utils.o ptid.o buffer.o format.o filestuff.o \
+       dll.o notif.o tdesc.o \
        $(XML_BUILTIN) \
        $(DEPFILES) $(LIBOBJS)
 GDBREPLAY_OBS = gdbreplay.o version.o
@@ -251,9 +253,7 @@ install-only:
                $(INSTALL_PROGRAM) $(IPA_LIB) $(DESTDIR)$(libdir)/$(IPA_LIB); \
        fi; \
        $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir); \
-       $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT); \
-       $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir); \
-       $(INSTALL_DATA) $(srcdir)/gdbserver.1 $(DESTDIR)$(man1dir)/$$n.1
+       $(INSTALL_PROGRAM) gdbserver$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
        @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
 
 uninstall: force
@@ -287,7 +287,7 @@ gdbreplay$(EXEEXT): $(GDBREPLAY_OBS)
        ${CC-LD} $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
          $(XM_CLIBS)
 
-IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o ${IPA_DEPFILES}
+IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o tdesc-ipa.o ${IPA_DEPFILES}
 
 IPA_LIB=libinproctrace.so
 
@@ -316,7 +316,7 @@ clean:
        rm -f version.c
        rm -f gdbserver$(EXEEXT) gdbreplay$(EXEEXT) core make.log
        rm -f $(IPA_LIB)
-       rm -f aarch64.c aarch64-without-fpu.c
+       rm -f aarch64.c
        rm -f reg-arm.c reg-bfin.c i386.c reg-ia64.c reg-m32r.c reg-m68k.c
        rm -f reg-sh.c reg-sparc.c reg-spu.c amd64.c i386-linux.c
        rm -f reg-cris.c reg-crisv32.c amd64-linux.c reg-xtensa.c
@@ -324,6 +324,7 @@ clean:
        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 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
        rm -f powerpc-altivec64l.c powerpc-cell64l.c powerpc-vsx64l.c
@@ -425,6 +426,8 @@ signals_h = $(srcdir)/../../include/gdb/signals.h $(signals_def)
 ptid_h = $(srcdir)/../common/ptid.h
 ax_h = $(srcdir)/ax.h
 agent_h = $(srcdir)/../common/agent.h
+linux_btrace_h = $(srcdir)/../common/linux-btrace.h \
+               $(srcdir)/../common/btrace-common.h $(vec_h) $(ptid_h)
 linux_osdata_h = $(srcdir)/../common/linux-osdata.h
 vec_h = $(srcdir)/../common/vec.h
 gdb_vecs_h = $(srcdir)/../common/gdb_vecs.h
@@ -502,6 +505,9 @@ linux-amd64-ipa.o: linux-amd64-ipa.c
 amd64-linux-ipa.o: amd64-linux.c
        $(IPAGENT_COMPILE) $<
        $(POSTCOMPILE)
+tdesc-ipa.o: tdesc.c
+       $(IPAGENT_COMPILE) $<
+       $(POSTCOMPILE)
 
 ax.o: ax.c
        $(COMPILE) $(WARN_CFLAGS_NO_FORMAT) $<
@@ -540,10 +546,16 @@ buffer.o: ../common/buffer.c
 format.o: ../common/format.c
        $(COMPILE) $<
        $(POSTCOMPILE)
+filestuff.o: ../common/filestuff.c
+       $(COMPILE) $<
+       $(POSTCOMPILE)
 agent.o: ../common/agent.c
        $(COMPILE) $<
        $(POSTCOMPILE)
 
+linux-btrace.o: ../common/linux-btrace.c $(linux_btrace_h) $(server_h)
+       $(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $<
+
 # We build vasprintf with -DHAVE_CONFIG_H because we want that unit to
 # include our config.h file.  Otherwise, some system headers do not get
 # included, and the compiler emits a warning about implicitly defined
@@ -556,17 +568,10 @@ vsnprintf.o: $(srcdir)/../../libiberty/vsnprintf.c
        $(POSTCOMPILE)
 
 i386_low_h = $(srcdir)/i386-low.h
-
-linux-low.o: linux-low.c
-       $(COMPILE) $< @USE_THREAD_DB@
-       $(POSTCOMPILE)
-
 win32_low_h = $(srcdir)/win32-low.h
 
 aarch64.c : $(srcdir)/../regformats/aarch64.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/aarch64.dat aarch64.c
-aarch64-without-fpu.c : $(srcdir)/../regformats/aarch64-without-fpu.dat $(regdat_sh)
-       $(SHELL) $(regdat_sh) $(srcdir)/../regformats/aarch64-without-fpu.dat aarch64-without-fpu.c
 reg-arm.c : $(srcdir)/../regformats/reg-arm.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/reg-arm.dat reg-arm.c
 arm-with-iwmmxt.c : $(srcdir)/../regformats/arm-with-iwmmxt.dat $(regdat_sh)
@@ -611,6 +616,8 @@ mips64-linux.c : $(srcdir)/../regformats/mips64-linux.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-linux.dat mips64-linux.c
 mips64-dsp-linux.c : $(srcdir)/../regformats/mips64-dsp-linux.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/mips64-dsp-linux.dat mips64-dsp-linux.c
+nios2-linux.c :        $(srcdir)/../regformats/nios2-linux.dat $(regdat_sh)
+       $(SHELL) $(regdat_sh) $(srcdir)/../regformats/nios2-linux.dat nios2-linux.c
 powerpc-32.c : $(srcdir)/../regformats/rs6000/powerpc-32.dat $(regdat_sh)
        $(SHELL) $(regdat_sh) $(srcdir)/../regformats/rs6000/powerpc-32.dat powerpc-32.c
 powerpc-32l.c : $(srcdir)/../regformats/rs6000/powerpc-32l.dat $(regdat_sh)
This page took 0.028748 seconds and 4 git commands to generate.