From 06caf9770da8eb81e3e2247df158a01772a16315 Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Sun, 19 Jul 2015 15:56:09 +0200 Subject: [PATCH] Add a Linux AXP target (also usable for amd64 aka x86_64 hosts) so that the USEINT memory model can be used, rather than the USEHWD model that gets used for 32-bit i386. --- bld/lnaxp/Makefile | 1 + src/Mk-lnaxp.mk | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 120000 bld/lnaxp/Makefile create mode 100644 src/Mk-lnaxp.mk diff --git a/bld/lnaxp/Makefile b/bld/lnaxp/Makefile new file mode 120000 index 0000000..0ce20c9 --- /dev/null +++ b/bld/lnaxp/Makefile @@ -0,0 +1 @@ +../../src/Mk-lnaxp.mk \ No newline at end of file diff --git a/src/Mk-lnaxp.mk b/src/Mk-lnaxp.mk new file mode 100644 index 0000000..891ec9a --- /dev/null +++ b/src/Mk-lnaxp.mk @@ -0,0 +1,45 @@ +# KLH10 Makefile for Linux on i386 +# $Id: Mk-lnx86.mk,v 2.5 2002/04/24 18:03:04 klh Exp $ +# +# Copyright © 2001 Kenneth L. Harrenstien +# All Rights Reserved +# +# This file is part of the KLH10 Distribution. Use, modification, and +# re-distribution is permitted subject to the terms in the file +# named "LICENSE", which contains the full text of the legal notices +# and should always accompany this Distribution. +# +# This software is provided "AS IS" with NO WARRANTY OF ANY KIND. +# +# This notice (including the copyright and warranty disclaimer) +# must be included in all copies or derivations of this software. +# +##################################################################### + +# Local config setup, for GNU "make"! +# Recursively invokes make with right params for local platform. + +# Build definitions +SRC = ../../src +CFLAGS = -c -g3 -O3 -I. -I$(SRC) +CFLAGS_LINT = -ansi -pedantic -Wall -Wshadow \ + -Wstrict-prototypes -Wmissing-prototypes \ + -Wmissing-declarations -Wredundant-decls + +# Source definitions +CENVFLAGS = -DCENV_CPU_ALPHA=1 -DCENV_SYS_LINUX=1 -DKLH10_DEV_LITES=1 \ + -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE + +# Any target with no customized rule here is simply passed on to the +# standard Makefile. If no target is specified, "usage" is passed on +# to generate a helpful printout. + +usage .DEFAULT: + @make -f $(SRC)/Makefile.mk $@ \ + "SRC=$(SRC)" \ + "CFLAGS=$(CFLAGS)" \ + "CFLAGS_LINT=$(CFLAGS_LINT)" \ + "CENVFLAGS=$(CENVFLAGS)" + +install: + make -f $(SRC)/Makefile.mk install-unix