summaryrefslogtreecommitdiff
path: root/interface/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'interface/Makefile.am')
-rw-r--r--interface/Makefile.am25
1 files changed, 25 insertions, 0 deletions
diff --git a/interface/Makefile.am b/interface/Makefile.am
new file mode 100644
index 0000000..2003073
--- /dev/null
+++ b/interface/Makefile.am
@@ -0,0 +1,25 @@
+AUTOMAKE_OPTIONS = cygnus
+INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
+AM_CCASFLAGS = $(INCLUDES)
+
+noinst_LIBRARIES = lib.a
+
+if MAY_SUPPLY_SYSCALLS
+extra_objs = syscalls.o syscall.o # add more object files here if you split up
+else # syscalls.c into multiple files in the previous step
+extra_objs =
+endif
+
+lib_a_SOURCES =
+lib_a_LIBADD = $(extra_objs)
+EXTRA_lib_a_SOURCES = syscalls.c syscall.s crt0.s # add more source files here if you split up
+lib_a_DEPENDENCIES = $(extra_objs) # syscalls.c into multiple files
+lib_a_CCASFLAGS = $(AM_CCASFLAGS)
+lib_a_CFLAGS = $(AM_CFLAGS)
+
+if MAY_SUPPLY_SYSCALLS
+all: crt0.o
+endif
+
+ACLOCAL_AMFLAGS = -I ../../..
+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host