Commit 81282852 authored by Geert Stappers's avatar Geert Stappers

Import Upstream version 2.4.0

parent dcf81f12

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 -g0 -w-proto
OFLAGS = -6 -O2 -w-proto -g0
.c.obj:
BCC32 -c -o$@ $(OFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(SLIB) $<
$(CC) -c -o$@ $(OFLAGS) $(CFLAGS) $(CPPFLAGS) -I$(SLIB) $<
/.version/1.7/Thu Jul 26 01:16:49 2001//Tsdcc-230
/Bcc.inc/1.2/Wed May 16 06:20:33 2001//Tsdcc-230
/COPYING/1.1.1.1/Mon Jan 17 03:23:41 2000//Tsdcc-230
/ChangeLog/1.24/Sun Sep 16 14:04:32 2001//Tsdcc-230
/Makefile/1.28/Sat Jul 21 04:59:14 2001//Tsdcc-230
/Makefile.bcc/1.7/Sat Jul 7 05:41:41 2001//Tsdcc-230
/Makefile.common.in/1.12/Wed Jul 18 04:43:24 2001//Tsdcc-230
/README/1.3.12.1/Wed Sep 19 18:35:14 2001//Tsdcc-230
/clean.mk/1.5/Sat Jul 21 04:40:53 2001//Tsdcc-230
/conf.mk/1.1.1.1/Mon Jan 17 03:23:41 2000//Tsdcc-230
/configure/1.27/Tue Jul 3 23:20:01 2001//Tsdcc-230
/configure.in/1.29/Tue Jul 3 23:20:01 2001//Tsdcc-230
/install-sh/1.1.1.1/Mon Jan 17 03:23:42 2000//Tsdcc-230
/main_in.mk/1.1.1.1/Mon Jan 17 03:23:42 2000//Tsdcc-230
/sdcc.dsw/1.2/Tue Apr 24 04:44:15 2001//Tsdcc-230
/sdcc.spec/1.1/Mon Feb 26 02:51:21 2001//Tsdcc-230
/sdcc_vc.h/1.4/Fri Apr 20 03:00:09 2001//Tsdcc-230
/sdccbuild.sh/1.1.1.1/Mon Jan 17 03:23:42 2000//Tsdcc-230
/sdccconf_in.h/1.8/Tue Mar 6 09:30:27 2001//Tsdcc-230
D/as////
D/bin////
D/debugger////
D/device////
D/doc////
D/link////
D/packihx////
D/sim////
D/src////
D/support////
D/tinitalk////
:pserver:anonymous@cvs.sdcc.sourceforge.net:/cvsroot/sdcc
This diff is collapsed.
......@@ -9,14 +9,15 @@ PRJDIR = .
include $(PRJDIR)/Makefile.common
SDCC_MISC = debugger/mcs51 sim/ucsim
SDCC_LIBS = support/cpp support/cpp2
SDCC_LIBS = support/cpp2 support/makebin
SDCC_DOC = doc
# Parts that are not normally compiled but need to be cleaned
SDCC_EXTRA = support/regression support/makebin
SDCC_EXTRA = support/regression
SDCC_ASLINK = as/mcs51 as link
SDCC_ASLINK = as/mcs51 as link as/hc08
SDCC_PACKIHX = packihx
SDCC_LIBRARIAN = support/librarian
TARGETS = sdcc-libs sdcc-cc sdcc-aslink sdcc-doc
......@@ -37,8 +38,11 @@ TARGETS += sdcc-packihx
PKGS += $(SDCC_PACKIHX)
endif
TARGETS += sdcc-librarian
PKGS += $(SDCC_LIBRARIAN)
PKGS_TINI = $(SDCC_LIBS) $(SDCC_ASLINK) \
src device/include $(SDCC_PACKIHX)
src device/include $(SDCC_PACKIHX) $(SDCC_LIBRARIAN)
PORTS = $(shell cat ports.build)
ALLPORTS = $(shell cat ports.all)
......@@ -63,7 +67,10 @@ sdcc-misc:
sdcc-packihx:
$(MAKE) -C $(SDCC_PACKIHX)
sdcc-device:
sdcc-librarian:
$(MAKE) -C $(SDCC_LIBRARIAN)
sdcc-device: sdcc-cc sdcc-aslink
$(MAKE) -C device/include
$(MAKE) -C device/lib
......@@ -76,7 +83,7 @@ sdcc-doc:
sdcc: $(TARGETS)
sdcc-tini: sdcc-cc sdcc-aslink sdcc-device-tini sdcc-packihx
sdcc-tini: sdcc-cc sdcc-aslink sdcc-device-tini sdcc-packihx sdcc-librarian
$(MAKE) -f main.mk all
# Some interesting sub rules
......@@ -117,7 +124,7 @@ clean:
$(MAKE) -f clean.mk clean
@echo "+ Cleaning packages in their directories..."
for pkg in $(PKGS); do\
$(MAKE) PORTS="$(PORTS)" -C $$pkg -f clean.mk clean ;\
$(MAKE) PORTS="$(PORTS)" EXEEXT=$(EXEEXT) -C $$pkg -f clean.mk clean ;\
done
# Deleting all files created by configuring or building the program
......@@ -127,7 +134,7 @@ distclean:
$(MAKE) -f clean.mk distclean
@echo "+ DistCleaning packages using clean.mk..."
for pkg in $(PKGS); do\
$(MAKE) -C $$pkg PORTS="$(PORTS)" -f clean.mk distclean ;\
$(MAKE) -C $$pkg PORTS="$(PORTS)" EXEEXT=$(EXEEXT) -f clean.mk distclean ;\
done
for pkg in $(SDCC_EXTRA); do \
$(MAKE) -C $$pkg clean; \
......@@ -138,7 +145,7 @@ distclean:
mostlyclean: clean
$(MAKE) -f clean.mk mostlyclean
for pkg in $(PKGS); do\
$(MAKE) -C $$pkg -f clean.mk PORTS="$(PORTS)" mostlyclean ;\
$(MAKE) -C $$pkg -f clean.mk PORTS="$(PORTS)" EXEEXT=$(EXEEXT) mostlyclean ;\
done
......@@ -148,7 +155,7 @@ mostlyclean: clean
realclean: distclean
$(MAKE) -f clean.mk realclean
for pkg in $(PKGS); do\
$(MAKE) -C $$pkg -f clean.mk PORTS="$(PORTS)" realclean ;\
$(MAKE) -C $$pkg -f clean.mk PORTS="$(PORTS)" EXEEXT=$(EXEEXT) realclean ;\
done
......
all: as cpp ports sdcc packihx cpp2
as:
cd as\mcs51
make -f Makefile.bcc
cd ..\..
cpp:
cd support\cpp
make -f Makefile.bcc
cd ..\..
# Makefile for Borlad C++
all: config asx8051 as-z80 sdcc packihx cpp2
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 ..\..
cpp2:
cd support\cpp2
make -f Makefile.bcc
cd ..\..
ports: z80 mcs51 avr ds390 pic izt
z80:
cd src\z80
make -f Makefile.bcc
cd ..\..
mcs51:
cd src\mcs51
make -f Makefile.bcc
cd ..\..
avr:
cd src\avr
make -f Makefile.bcc
cd ..\..
ds390:
cd src\ds390
make -f Makefile.bcc
cd ..\..
pic:
cd src\pic
make -f Makefile.bcc
cd ..\..
izt:
cd src\izt
make -f Makefile.bcc
cd support\cpp2
make -f Makefile.bcc
cd ..\..
sdcc:
cd src
make -f Makefile.bcc
cd ..
cd src
make -f Makefile.bcc
cd ..
packihx:
cd packihx
make -f Makefile.bcc
cd ..
cd packihx
make -f Makefile.bcc
cd ..
librarian:
cd support\librarian
make -f Makefile.bcc
cd ..\..
......@@ -2,9 +2,6 @@
#
#
# HACK
PORT = mcs51
# Version
VERSION = @VERSION@
VERSIONHI = @VERSIONHI@
......@@ -17,7 +14,7 @@ CC = @CC@
CPP = @CPP@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
YACC = @YACC@
YACC = @YACC@
LEX = @LEX@
AWK = @AWK@
STRIP = @STRIP@
......@@ -32,7 +29,10 @@ man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
infodir = @infodir@
srcdir = @srcdir@
docdir = @datadir@/doc/sdcc
docdir = @docdir@
include_dir_suffix = @include_dir_suffix@
lib_dir_suffix = @lib_dir_suffix@
# Modules to enable/disable
OPT_ENABLE_UCSIM = @OPT_ENABLE_UCSIM@
......@@ -41,22 +41,24 @@ OPT_ENABLE_PACKIHX = @OPT_ENABLE_PACKIHX@
SLIB = $(PRJDIR)/support/Util
EXEEXT = @EXEEXT@
transform = @program_transform_name@
# Flags
DEFS = $(subs -DHAVE_CONFIG_H,,@DEFS@)
CPPFLAGS = $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
CFLAGS = @CFLAGS@ -Wall
DEFS += $(subs -DHAVE_CONFIG_H,,@DEFS@)
CPPFLAGS += $(INCLUDEFLAGS) -I. -I$(PRJDIR) -I$(SLIB)
CFLAGS += -Wall @CFLAGS@
LDFLAGS += @LDFLAGS@
M_OR_MM = @M_OR_MM@
EXTRALIBS += @LIBS@
# Shared settings between all the sub Makefiles
# Done here so that we don't have to start a Make from the top levelport
# directory.
# Library compilation options
SCC = $(PRJDIR)/src/sdcc
SAS = $(PRJDIR)/as/$(PORT)/as
CLEANSPEC = *.lst *.asm *.sym *~ *.cdb *.dep *.rul
OBJ = $(SOURCES:.c=.o)
# 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