From 268a53de823a6750d6256ee1fb1e7707b4b45740 Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Fri, 18 Oct 2019 00:31:54 +0200 Subject: sdcc-3.9.0 fork implementing GNU assembler syntax This fork aims to provide better support for stm8-binutils --- device/non-free/lib/pic14/Makefile.common | 85 +++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 device/non-free/lib/pic14/Makefile.common (limited to 'device/non-free/lib/pic14/Makefile.common') diff --git a/device/non-free/lib/pic14/Makefile.common b/device/non-free/lib/pic14/Makefile.common new file mode 100644 index 0000000..2319047 --- /dev/null +++ b/device/non-free/lib/pic14/Makefile.common @@ -0,0 +1,85 @@ +########################################################### +### Makefile.common.in for the SDCC/PIC14 Library +### +### Copyright (C) 2005 by Raphael Neider +### +### The library is currently maintained by +### Raphael Neider +### +### This file may be distributed under the terms of the the +### GNU General Public License (GPL). See GPL for details. +### +### $Id: Makefile.common.in 8895 2013-11-11 00:17:19Z tecodev $ +### + +################################################# +### verboseness +#Q ?= # be verbose +Q ?= @ # be quiet +# be really quiet (suppress "Entering/Leaving directory...") +#MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s + +################################################# +### compiler switches +# ARCH might be overwritten in libio +ARCH ?= 877 + +CFLAGS ?= +CFLAGS += -mpic14 -p16f$(ARCH) +CFLAGS += --std-c99 +CFLAGS += -I. -I$(top_srcdir)/../../include/pic14 -I$(top_srcdir)/../../non-free/include/pic14 +CFLAGS += --no-warn-non-free + +################################################# +### optimization flags + +################################################# +### debugging PIC14 port +#CFLAGS += --debug-ralloc +#CFLAGS += --debug-xtra +#CFLAGS += --pcode-verbose +CFLAGS += --i-code-in-asm + +################################################# +### debugging SDCC's optimizations +#CFLAGS += --nooverlay +#CFLAGS += --nogcse +#CFLAGS += --nolabelopt +#CFLAGS += --noinvariant +#CFLAGS += --noinduction +#CFLAGS += --nojtbound +#CFLAGS += --noloopreverse + +################################################# +### assembler switches +ASFLAGS ?= +ASFLAGS += -pp16f$(ARCH) +ASFLAGS += -I$(top_srcdir)/../../include/pic14 -I$(top_srcdir)/../../non-free/include/pic14 +ASFLAGS += -I. -I$(srcdir) + +################################################# +### linker switches +LDFLAGS ?= +LDFLAGS += -m -l -w + +################################################# +### librarian switches +LIBFLAGS ?= +LIBFLAGS += -c + +################################################# +### programs to use +CPP = $(top_builddir)/../../../bin/sdcpp +CC = $(top_builddir)/../../../bin/sdcc +AS = gpasm +LD = gplink +LIB = gplib + +SED ?= sed +GREP ?= /bin/grep -E + +MKDIR ?= mkdir -p +RMDIR ?= rmdir +CP ?= cp +MV ?= mv +RM ?= rm -f -- cgit v1.2.3