From 6c77c28adbb97b75ebebec4326d18deb23e0c070 Mon Sep 17 00:00:00 2001 From: sandeep Date: Sun, 1 Apr 2001 00:35:44 +0000 Subject: [PATCH] added asm file ext to port. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@723 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCglue.c | 2 +- src/clean.mk | 2 +- src/port.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SDCCglue.c b/src/SDCCglue.c index 2b1a1f1d..460342a0 100644 --- a/src/SDCCglue.c +++ b/src/SDCCglue.c @@ -1297,7 +1297,7 @@ glue () if (!options.c1mode) { sprintf (buffer, srcFileName); - strcat (buffer, ".asm"); + strcat (buffer, port->assembler.file_ext); } else { diff --git a/src/clean.mk b/src/clean.mk index 165682d3..b60ad6d7 100644 --- a/src/clean.mk +++ b/src/clean.mk @@ -4,7 +4,7 @@ clean: rm -f *core *[%~] *.[oa] *.output rm -f .[a-z]*~ \#* rm -f $(PRJDIR)/bin/sdcc sdcc - for port in $(ALLPORTS) ; do\ + for port in $(PORTS) ; do\ $(MAKE) -C $$port -f clean.mk clean ;\ done diff --git a/src/port.h b/src/port.h index db0eda65..f8e733a8 100644 --- a/src/port.h +++ b/src/port.h @@ -63,6 +63,8 @@ typedef struct const char *plain_opts; /* print externs as global */ int externGlobal; + /* assembler file extension */ + const char *file_ext; } assembler; -- 2.30.2