Commit 97e335b9 authored by Geert Stappers's avatar Geert Stappers

Import Upstream version 2.9.0

parent ef3b3601
# Configuration file for git-buildpackage and friends
[DEFAULT]
# the default build command:
#builder = debuild -i\.git/ -I.git
# the default clean command:
#cleaner = debuild clean
# the default branch for upstream sources:
upstream-branch = dfsg-orig
# the default branch for the debian patch:
debian-branch = dfsg-debian
# the default tag formats used:
#upstream-tag = upstream/%(version)s
#debian-tag = debian/%(version)s
# use pristine-tar:
pristine-tar = True
# Options only affecting git-buildpackage
[git-buildpackage]
#upstream-branch = dfsgclean
# uncomment this to automatically GPG sign tags
#sign-tags = True
# keyid to GPG sign tags with
#keyid = 0xdeadbeef
# push to a remote repository after a successful tag:
#posttag = git-push git.example.com
# use this for more svn-buildpackage like behaviour:
export-dir = ../build-area/
#tarball-dir = ../tarballs/
# Options only affecting git-import-orig
[git-import-orig]
#upstream-branch = newupstream
#debian-branch = dfsgclean
#filter = .svn
# Options only affecting git-import-dsc
[git-import-dsc]
#upstream-branch = svn-upstream
#filter = [ 'CVS', '.cvsignore' ]
# Options only affecting git-dch
[git-dch]
#git-log = --no-merges
#snapshot-number = snapshot + 1
This diff is collapsed.
# Makefile for Borlad C++
all: config asx8051 as-z80 sdcc packihx cpp2
all: config asx8051 as-z80 sdcc packihx cpp
config: sdcc_vc.h
......@@ -18,8 +18,8 @@ as-z80:
make -f Makefile.bcc
cd ..\..
cpp2:
cd support\cpp2
cpp:
cd support\cpp
make -f Makefile.bcc
cd ..\..
......
......@@ -3,6 +3,7 @@
#
# Version
PACKAGE = @PACKAGE@
VERSION = @VERSION@
VERSIONHI = @VERSIONHI@
VERSIONLO = @VERSIONLO@
......@@ -10,12 +11,12 @@ VERSIONP = @VERSIONP@
# Programs
SHELL = /bin/sh
CC = @CC@
CPP = @CPP@
CC = @CCACHE@ @CC@
CPP = @CCACHE@ @CPP@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
YACC = @YACC@
LEX = @LEX@
LEX = @LEX@
AWK = @AWK@
STRIP = @STRIP@
prefix = @prefix@
......
......@@ -2,7 +2,7 @@
#
#
SHELL = /bin/sh
SHELL = /bin/sh
VPATH = @srcdir@
srcdir = @srcdir@
......@@ -11,14 +11,17 @@ top_srcdir = @top_srcdir@
include Makefile.common
SDCC_LIBS = support/makebin
SDCC_LIBS = support/makebin
SDCC_DOC = doc
# Parts that are not normally compiled but need to be cleaned
SDCC_EXTRA = support/regression support/valdiag
SDCC_PACKIHX = support/packihx
SDCC_LIBRARIAN = support/librarian
SDCC_PACKIHX = support/packihx
SDCC_LIBRARIAN = support/librarian
SDCC_ASRANLIB = as/asranlib
TARGETS = sdcc-librarian sdcc-asranlib
ifeq ($(OPT_DISABLE_HC08), 0)
SDCC_ASLINK += as/hc08 as/link/hc08
......@@ -26,7 +29,7 @@ endif
ifeq ($(OPT_DISABLE_MCS51), 0)
SDCC_ASLINK += as/mcs51 as/link/mcs51
SDCC_MISC += debugger/mcs51
SDCC_MISC += debugger/mcs51
endif
ifeq ($(OPT_DISABLE_Z80), 0)
......@@ -56,17 +59,17 @@ endif
PKGS += $(SDCC_DOC)
ifeq ($(OPT_DISABLE_SDCPP), 0)
SDCC_LIBS += support/cpp2
SDCC_LIBS += support/cpp
endif
TARGETS += sdcc-libs sdcc-cc sdcc-device-inc sdcc-aslink sdcc-librarian
TARGETS += sdcc-libs sdcc-cc sdcc-device-inc sdcc-aslink
PKGS += $(SDCC_LIBS) src device/include $(SDCC_ASLINK) $(SDCC_LIBRARIAN)
PKGS += $(SDCC_LIBS) src device/include $(SDCC_ASLINK) $(SDCC_LIBRARIAN) $(SDCC_ASRANLIB)
PKGS_TINI = $(SDCC_LIBS) $(SDCC_ASLINK) \
src device/include $(SDCC_PACKIHX) $(SDCC_LIBRARIAN)
PORTS = $(shell cat ports.build)
ALLPORTS = $(shell cat ports.all)
PKGS_TINI = $(SDCC_LIBS) $(SDCC_ASLINK) \
src device/include $(SDCC_PACKIHX) $(SDCC_LIBRARIAN)
PORTS = $(shell cat ports.build)
ALLPORTS = $(shell cat ports.all)
# Compiling entire program or any subproject
# ------------------------------------------
......@@ -92,6 +95,9 @@ sdcc-packihx:
sdcc-librarian:
$(MAKE) -C $(SDCC_LIBRARIAN)
sdcc-asranlib:
$(MAKE) -C $(SDCC_ASRANLIB)
sdcc-device-inc:
$(MAKE) -C device/include
......@@ -108,7 +114,7 @@ sdcc-doc:
sdcc: $(TARGETS)
sdcc-tini: sdcc-cc sdcc-aslink sdcc-device-tini sdcc-packihx sdcc-librarian
sdcc-tini: sdcc-librarian sdcc-asranlib sdcc-cc sdcc-aslink sdcc-device-tini sdcc-packihx
$(MAKE) -f main.mk all
# Some interesting sub rules
......
This diff is collapsed.
......@@ -8,7 +8,7 @@ BUILDDIR=../$(top_builddir)/bin
include $(top_builddir)/Makefile.common
PORTS = z80 gbz80
DOCS = README abstra.doc appendk.txt asmlnk.doc asxhtm.html format.txt
DOCS = README abstra.txt appendk.txt asmlnk.txt asxhtm.html format.txt
all:
$(MAKE) -C z80 _as-z80 _as-gbz80 E=$(E) BUILDDIR=$(BUILDDIR)
......
VPATH = @srcdir@
srcdir = @srcdir@
top_builddir = @top_builddir@
include $(top_builddir)/Makefile.common
CFLAGS += -Wall -I$(srcdir)/../link
OBJECTS = asranlib.o
SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
TARGET = $(top_builddir)/bin/asranlib$(EXEEXT)
all: $(TARGET)
install: all installdirs
$(INSTALL) $(TARGET) `echo $(DESTDIR)$(bindir)/asranlib$(EXEEXT)|sed '$(transform)'`
$(STRIP) `echo $(DESTDIR)$(bindir)/asranlib$(EXEEXT)|sed '$(transform)'`
# Deleting all the installed files
# --------------------------------
uninstall:
rm -f $(DESTDIR)$(bindir)/asranlib$(EXEEXT)
# Performing self-test
# --------------------
check:
# Performing installation test
# ----------------------------
installcheck:
# Creating installation directories
# ---------------------------------
installdirs:
$(INSTALL) -d $(DESTDIR)$(bindir)
# Creating dependencies
# ---------------------
dep:
$(TARGET): $(OBJECTS) dbuf.o dbuf_string.o
$(CC) $(LDFLAGS) -o $@ $(OBJECTS) dbuf.o dbuf_string.o
dbuf.o: $(srcdir)/../../support/Util/dbuf.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
dbuf_string.o: $(srcdir)/../../support/Util/dbuf_string.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
checkconf:
clean:
rm -f *core *[%~] *.[oa] *.output
rm -f .[a-z]*~ \#*
rm -f $(top_builddir)/bin/asranlib$(EXEEXT)
distclean realclean: clean
rm -f Makefile
This diff is collapsed.
# Microsoft Developer Studio Project File - Name="asranlib" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=asranlib - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "asranlib.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "asranlib.mak" CFG="asranlib - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "asranlib - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "asranlib - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "asranlib - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /I "../link" /I "../../support/Util" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
# ADD BASE RSC /l 0x424 /d "NDEBUG"
# ADD RSC /l 0x424 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
!ELSEIF "$(CFG)" == "asranlib - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "../link" /I "../../support/Util" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /FR /YX /FD /GZ /c
# ADD BASE RSC /l 0x424 /d "_DEBUG"
# ADD RSC /l 0x424 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
!ENDIF
# Begin Target
# Name "asranlib - Win32 Release"
# Name "asranlib - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\asranlib.c
# End Source File
# Begin Source File
SOURCE=..\..\support\Util\dbuf.c
# End Source File
# Begin Source File
SOURCE=..\..\support\Util\dbuf_string.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=..\link\aslink.h
# End Source File
# Begin Source File
SOURCE=..\link\asxxxx_config.h
# End Source File
# Begin Source File
SOURCE=..\..\support\Util\dbuf.h
# End Source File
# Begin Source File
SOURCE=..\..\support\Util\dbuf_string.h
# End Source File
# Begin Source File
SOURCE=..\link\lkar.h
# End Source File
# Begin Source File
SOURCE=..\link\lkrel.h
# End Source File
# End Group
# Begin Group "Resource Files"
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
# End Group
# End Target
# End Project
This diff is collapsed.
/* asnoice.c - Extensions to CUG 292 assembler ASxxxx to produce NoICE debug files
Copyright (C) 1989-1995 Alan R. Baldwin
721 Berkeley St., Kent, Ohio 44240
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/*
* Extensions to CUG 292 assembler ASxxxx to produce NoICE debug files
*
* 3-Nov-1997 by John Hartman
*/
#include <stdio.h>
#include <setjmp.h>
#include <string.h>
#include <ctype.h>
#include "asm.h"
/* Return basic file name without path or extension.
If spacesToUnderscores != 0 then spaces are converted to underscores */
char* BaseFileName( int fileNumber, int spacesToUnderscores )
{
static int prevFile = -1;
static char baseName[ PATH_MAX ];
char *p1, *p2;
if (fileNumber != prevFile)
{
prevFile = fileNumber;
p1 = srcfn[prevFile];
/* issue a FILE command with full path and extension */
fprintf( ofp, ";!FILE %s\n", p1 );
/* Name starts after any colon or backslash (DOS) */