about summary refs log tree commit diff
path: root/REORG.TODO/sysdeps/unix/sysv/linux/m68k/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/sysdeps/unix/sysv/linux/m68k/Makefile')
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/m68k/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/m68k/Makefile b/REORG.TODO/sysdeps/unix/sysv/linux/m68k/Makefile
new file mode 100644
index 0000000000..ce1f696a6f
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/m68k/Makefile
@@ -0,0 +1,25 @@
+# Linux/m68k uses Motorola asm syntax and the ELF format.
+
+m68k-syntax-flag = -DMOTOROLA_SYNTAX
+
+ifeq ($(subdir),csu)
+sysdep_routines += m68k-helpers
+ifeq (yes,$(build-shared))
+sysdep_routines += divdi3
+shared-only-routines += divdi3
+CPPFLAGS-divdi3.c = -Din_divdi3_c
+endif
+endif
+
+ifeq ($(subdir),misc)
+sysdep_routines += mremap
+sysdep_headers += sys/reg.h
+endif
+
+ifeq ($(subdir),elf)
+sysdep-dl-routines += dl-static
+sysdep_routines += dl-vdso libc-m68k-vdso
+sysdep-rtld-routines += m68k-vdso
+sysdep-others += lddlibc4
+install-bin += lddlibc4
+endif