diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000..39a7f68a --- /dev/null +++ b/Makefile.am @@ -0,0 +1,40 @@ +noinst_LIBRARIES = +MOSTLYCLEANFILES = + +AM_CPPFLAGS = \ + -pipe \ + -std=gnu99 \ + -imacros config.h \ + -I$(top_srcdir) \ + -I$(top_srcdir)/arch/$(systype) + +AM_CFLAGS = \ + -Wall \ + -Wextra \ + -Wmissing-prototypes \ + -Wstrict-prototypes \ + -fsigned-char \ + -ffreestanding \ + -fno-stack-protector + +# Silent build support. +LDS_V = $(LDS_V_$(V)) +LDS_V_ = $(LDS_V_$(AM_DEFAULT_VERBOSITY)) +LDS_V_0 = @echo " LDS $@"; + +SUFFIXES = .lds .lds.S + +.lds.S.lds: + $(LDS_V) $(CPP) -P $(AM_CPPFLAGS) -o $@ $< + +exec_bootdir = $(exec_prefix)/boot +exec_boot_PROGRAMS = x15 +x15_DEPENDENCIES = arch/$(systype)/x15.lds +MOSTLYCLEANFILES += arch/$(systype)/x15.lds +x15_SOURCES = +nodist_x15_SOURCES = +x15_LDFLAGS = -nostartfiles -nostdlib -T arch/$(systype)/x15.lds +x15_LDADD = -lgcc + +# Sources +include Makefrag.am |