X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fpic%2FMakefile.common.in;fp=device%2Flib%2Fpic%2FMakefile.common.in;h=1ba999ea44cbf6b711aba6ed940d47f27edb87ae;hb=f8dc9d8f924a08b854d4784fdb4b841b7b006081;hp=0000000000000000000000000000000000000000;hpb=770ad4b1a93892619759d3779a8fcb973ca26bb9;p=fw%2Fsdcc diff --git a/device/lib/pic/Makefile.common.in b/device/lib/pic/Makefile.common.in new file mode 100644 index 00000000..1ba999ea --- /dev/null +++ b/device/lib/pic/Makefile.common.in @@ -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$ +### + +SHELL = bash + +################################################# +### verboseness +#Q ?= # be verbose +Q ?= @ # be quiet +# be really quiet (suppress "Entering/Leaving directory...") +#MAKEFLAGS := $(filter-out -s,$(MAKEFLAGS)) -s + +################################################# +### compiler switches +ARCH ?= 877 # might be overwritten in libio + +CFLAGS ?= +CFLAGS += -mpic14 -p16f$(ARCH) +CFLAGS += --std-c99 +CFLAGS += -I. -I$(topsrcdir)/../../include/pic + +################################################# +### 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$(topsrcdir)/../../include/pic + +################################################# +### linker switches +LDFLAGS ?= +LDFLAGS += -m -l -w + +################################################# +### librarian switches +LIBFLAGS ?= +LIBFLAGS += -c + +################################################# +### programs to use +CPP = $(topsrcdir)/../../../bin/sdcpp +CC = $(topsrcdir)/../../../bin/sdcc +AS = @GPASM@ +LD = @GPLINK@ +LIB = @GPLIB@ + +SED ?= @SED@ +GREP ?= @EGREP@ + +MKDIR ?= @MKDIR@ +RMDIR ?= @RMDIR@ +CP ?= @CP@ +MV ?= @MV@ +RM ?= @RM@ +