Commit 4f22102b authored by Geert Stappers's avatar Geert Stappers

Import Upstream version 3.1.0+dfsg

parent 97e335b9

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

#Generic rules and options for building with Borland C++
.cacheautodepend
YACC = bison
LEX = flex
CC = bcc32
SLIB = $(PRJDIR)/support/Util
OFLAGS = -6 -O2 -w-proto -g0
.c.obj:
$(CC) -c -o$@ $(OFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(SLIB) $<
This diff is collapsed.
# Makefile for Borlad C++
all: config asx8051 as-z80 sdcc packihx cpp
config: sdcc_vc.h
sdcc_vc.h: sdcc_vc_in.h configure_vc.awk
gawk -f configure_vc.awk sdcc_vc_in.h > sdcc_vc.h
asx8051:
cd as\mcs51
make -f Makefile.bcc
cd ..\..
as-z80:
cd as\z80
make -f Makefile.bcc
cd ..\..
cpp:
cd support\cpp
make -f Makefile.bcc
cd ..\..
sdcc:
cd src
make -f Makefile.bcc
cd ..
packihx:
cd support\packihx
make -f Makefile.bcc
cd ..
librarian:
cd support\librarian
make -f Makefile.bcc
cd ..\..
......@@ -10,15 +10,17 @@ VERSIONLO = @VERSIONLO@
VERSIONP = @VERSIONP@
# Programs
SHELL = /bin/sh
CC = @CCACHE@ @CC@
CPP = @CCACHE@ @CPP@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
SHELL = /bin/sh
CC = @CCACHE@ @CC@
CPP = @CCACHE@ @CPP@
CXX = @CCACHE@ @CXX@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
YACC = @YACC@
LEX = @LEX@
AWK = @AWK@
STRIP = @STRIP@
MAKEDEP = @MAKEDEP@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
......@@ -42,10 +44,13 @@ OPT_DISABLE_DS390 = @OPT_DISABLE_DS390@
OPT_DISABLE_DS400 = @OPT_DISABLE_DS400@
OPT_DISABLE_HC08 = @OPT_DISABLE_HC08@
OPT_DISABLE_MCS51 = @OPT_DISABLE_MCS51@
OPT_DISABLE_PIC = @OPT_DISABLE_PIC@
OPT_DISABLE_PIC14 = @OPT_DISABLE_PIC14@
OPT_DISABLE_PIC16 = @OPT_DISABLE_PIC16@
OPT_DISABLE_XA51 = @OPT_DISABLE_XA51@
OPT_DISABLE_Z80 = @OPT_DISABLE_Z80@
OPT_DISABLE_Z180 = @OPT_DISABLE_Z180@
OPT_DISABLE_R2K = @OPT_DISABLE_R2K@
OPT_DISABLE_GBZ80 = @OPT_DISABLE_GBZ80@
OPT_DISABLE_UCSIM = @OPT_DISABLE_UCSIM@
OPT_DISABLE_DEVICE_LIB= @OPT_DISABLE_DEVICE_LIB@
......@@ -53,7 +58,7 @@ OPT_DISABLE_PACKIHX = @OPT_DISABLE_PACKIHX@
OPT_ENABLE_DOC = @OPT_ENABLE_DOC@
OPT_DISABLE_SDCPP = @OPT_DISABLE_SDCPP@
SLIB = $(top_builddir)/support/Util
SLIB = $(top_builddir)/support/util
EXEEXT = @EXEEXT@
transform = @program_transform_name@
......@@ -62,9 +67,9 @@ transform = @program_transform_name@
DEFS += $(subs -DHAVE_CONFIG_H,,@DEFS@)
CPPFLAGS += @CPPFLAGS@ $(INCLUDEFLAGS) -I. -I$(top_builddir) -I$(srcdir)/$(SLIB) -I$(srcdir)
CFLAGS += -Wall @CFLAGS@
CFLAGS += @CFLAGS@ @WALL_FLAG@
CXXFLAGS += @CXXFLAGS@
LDFLAGS += @LDFLAGS@
M_OR_MM = @M_OR_MM@
EXTRALIBS += @LIBS@
......@@ -75,4 +80,4 @@ EXTRALIBS += @LIBS@
# Library compilation options
CLEANSPEC = *.lst *.asm *.sym *~ *.cdb *.dep *.rul
OBJ = $(SOURCES:.c=.o)
OBJ = $(SOURCES:.c=.o) $(CXXSOURCES:.cc=.o)
......@@ -12,6 +12,7 @@ top_srcdir = @top_srcdir@
include Makefile.common
SDCC_LIBS = support/makebin
SDCC_SCRIPTS = support/scripts
SDCC_DOC = doc
# Parts that are not normally compiled but need to be cleaned
......@@ -19,21 +20,34 @@ SDCC_EXTRA = support/regression support/valdiag
SDCC_PACKIHX = support/packihx
SDCC_LIBRARIAN = support/librarian
SDCC_ASRANLIB = as/asranlib
SDCC_SDRANLIB = support/sdranlib
TARGETS = sdcc-librarian sdcc-asranlib
TARGETS = sdcc-librarian sdcc-sdranlib
ifeq ($(OPT_DISABLE_HC08), 0)
SDCC_ASLINK += as/hc08 as/link/hc08
SDCC_AS += sdas/as6808
SDCC_LD += sdcc-ld6808
endif
ifeq ($(OPT_DISABLE_MCS51), 0)
SDCC_ASLINK += as/mcs51 as/link/mcs51
SDCC_AS += sdas/as8051
SDCC_LD += sdcc-ld8051
SDCC_MISC += debugger/mcs51
endif
ifeq ($(OPT_DISABLE_Z80), 0)
SDCC_ASLINK += as as/link
SDCC_AS += sdas/asz80
SDCC_LD += sdcc-ldz80
endif
ifeq ($(OPT_DISABLE_R2K), 0)
SDCC_AS += sdas/asrab
SDCC_LD += sdcc-ldz80
endif
ifeq ($(OPT_DISABLE_GBZ80), 0)
SDCC_AS += sdas/asgb
SDCC_LD += sdcc-ldgb
endif
ifeq ($(OPT_DISABLE_UCSIM), 0)
......@@ -44,7 +58,7 @@ endif
ifeq ($(OPT_DISABLE_DEVICE_LIB), 0)
TARGETS += sdcc-device-lib
PKGS += device/lib
PKGS += device/lib device/non-free/lib
endif
ifeq ($(OPT_DISABLE_PACKIHX), 0)
......@@ -62,12 +76,12 @@ ifeq ($(OPT_DISABLE_SDCPP), 0)
SDCC_LIBS += support/cpp
endif
TARGETS += sdcc-libs sdcc-cc sdcc-device-inc sdcc-aslink
TARGETS += sdcc-libs sdcc-cc sdcc-device-inc sdcc-as sdcc-ld sdcc-scripts
PKGS += $(SDCC_LIBS) src device/include $(SDCC_ASLINK) $(SDCC_LIBRARIAN) $(SDCC_ASRANLIB)
PKGS += $(SDCC_LIBS) src device/include device/non-free/include $(SDCC_AS) sdas/linksrc $(SDCC_LIBRARIAN) $(SDCC_SDRANLIB) $(SDCC_SCRIPTS)
PKGS_TINI = $(SDCC_LIBS) $(SDCC_ASLINK) \
src device/include $(SDCC_PACKIHX) $(SDCC_LIBRARIAN)
PKGS_TINI = $(SDCC_LIBS) $(SDCC_AS) sdas/linksrc \
src device/include device/non-free/include $(SDCC_PACKIHX) $(SDCC_LIBRARIAN)
PORTS = $(shell cat ports.build)
ALLPORTS = $(shell cat ports.all)
......@@ -83,29 +97,38 @@ sdcc-libs:
sdcc-cc: sdcc-libs
$(MAKE) -C src
sdcc-aslink:
for as in $(SDCC_ASLINK); do $(MAKE) -C $$as ; done
sdcc-as:
for as in $(SDCC_AS); do $(MAKE) -C $$as ; done
sdcc-ld:
$(MAKE) -C sdas/linksrc $(SDCC_LD)
sdcc-misc:
for misc in $(SDCC_MISC); do $(MAKE) -C $$misc ; done
sdcc-scripts:
$(MAKE) -C $(SDCC_SCRIPTS)
sdcc-packihx:
$(MAKE) -C $(SDCC_PACKIHX)
sdcc-librarian:
$(MAKE) -C $(SDCC_LIBRARIAN)
sdcc-asranlib:
$(MAKE) -C $(SDCC_ASRANLIB)
sdcc-sdranlib:
$(MAKE) -C $(SDCC_SDRANLIB)
sdcc-device-inc:
$(MAKE) -C device/include
$(MAKE) -C device/non-free/include
sdcc-device-lib: sdcc-cc sdcc-aslink
sdcc-device-lib: sdcc-cc sdcc-as sdcc-ld
$(MAKE) -C device/lib
$(MAKE) -C device/non-free/lib
sdcc-device-tini:
$(MAKE) -C device/include
$(MAKE) -C device/non-free/include
$(MAKE) -C device/lib model-ds390 model-ds400
# doc depends on latex and latex2html
......@@ -114,23 +137,23 @@ sdcc-doc:
sdcc: $(TARGETS)
sdcc-tini: sdcc-librarian sdcc-asranlib sdcc-cc sdcc-aslink sdcc-device-tini sdcc-packihx
sdcc-tini: sdcc-librarian sdcc-sdranlib sdcc-cc sdcc-as sdcc-ld sdcc-device-tini sdcc-packihx
$(MAKE) -f main.mk all
# Some interesting sub rules
sdcc-bin: sdcc-cc sdcc-aslink sdcc-misc
sdcc-bin: sdcc-cc sdcc-as sdcc-ld sdcc-misc
sdcc-base: sdcc-cc sdcc-aslink
sdcc-base: sdcc-cc sdcc-as sdcc-ld
# Compiling and installing everything and runing test
# ---------------------------------------------------
install:
# Compiling and installing everything and running test
# ----------------------------------------------------
install: checkconf sdcc
$(MAKE) -f main.mk install
@for pkg in $(PKGS); do\
$(MAKE) -C $$pkg install ;\
done
install-tini:
install-tini: checkconf sdcc
$(MAKE) -f main.mk install
@for pkg in $(PKGS_TINI); do\
$(MAKE) -C $$pkg install ;\
......@@ -212,7 +235,7 @@ installcheck:
# Creating dependencies
# ---------------------
dep:
dep: $(SDCC_LIBS)
$(MAKE) -f main.mk dep
@for pkg in $(PKGS); do\
$(MAKE) -C $$pkg dep ;\
......
# Microsoft Developer Studio Project File - Name="all" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Generic Project" 0x010a
CFG=all - 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 "all.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 "all.mak" CFG="all - Win32 Debug"