summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-24 23:17:51 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-24 23:18:52 +0200
commit9e93944f18de5d7e38c15651df0235156d9c6d4e (patch)
treefc4f9b788698849e547bb2c1ec82ec7d2742fd83 /src
parentd5577a84aadd0195a95b5b4d83e49b40af49425b (diff)
Removed intermediate files
Diffstat (limited to 'src')
-rw-r--r--src/Makefile153
-rw-r--r--src/ds390/Makefile7
-rw-r--r--src/hc08/Makefile7
-rw-r--r--src/mcs51/Makefile7
-rw-r--r--src/pdk/Makefile7
-rw-r--r--src/pic14/Makefile7
-rw-r--r--src/pic16/Makefile7
-rw-r--r--src/regression/Makefile226
-rw-r--r--src/stm8/Makefile7
-rw-r--r--src/z80/Makefile7
10 files changed, 0 insertions, 435 deletions
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index 3cc5b4b..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,153 +0,0 @@
-#
-#
-#
-
-srcdir = .
-top_srcdir = ..
-top_builddir = ..
-
-
-include $(top_builddir)/Makefile.common
-
-USE_ALT_LEX = 0
-
-PORTS = $(shell cat ../ports.build)
-ALLPORTS = $(shell cat ../ports.all)
-PORT_LIBS = $(PORTS:%=%/port.a)
-
-LIBS = -lm
-
-CFLAGS = -pipe -ggdb -g -Og -Wall -Wno-parentheses
-CXXFLAGS = -pipe -ggdb -g -Og -Wall -Wno-parentheses
-CPPFLAGS += -I$(srcdir)
-LDFLAGS =
-
-ifdef SDCC_SUB_VERSION
-CFLAGS += -DSDCC_SUB_VERSION_STR=\"$(SDCC_SUB_VERSION)\"
-endif
-
-SLIBOBJS = NewAlloc.o dbuf.o dbuf_string.o findme.o
-
-OBJECTS = SDCCy.o SDCChasht.o SDCCmain.o \
- SDCCsymt.o SDCCopt.o SDCCast.o SDCCmem.o SDCCval.o \
- SDCCicode.o SDCCbitv.o SDCCset.o SDCClabel.o \
- SDCCBBlock.o SDCCloop.o SDCCcse.o SDCCcflow.o SDCCdflow.o \
- SDCClrange.o SDCCptropt.o SDCCpeeph.o SDCCglue.o \
- SDCCasm.o SDCCmacro.o SDCCutil.o SDCCdebug.o cdbFile.o SDCCdwarf2.o\
- SDCCerr.o SDCCsystem.o SDCCgen.o
-
-SPECIAL = SDCCy.h
-ifeq ($(USE_ALT_LEX), 1)
-OBJECTS += altlex.o
-SPECIAL += reswords.h
-else
-OBJECTS += SDCClex.o
-endif
-
-SLIBSOURCES = $(patsubst %.o,$(SLIB)/%.c,$(SLIBOBJS))
-SOURCES := $(patsubst %.o,%.c,$(OBJECTS))
-
-# C++ sources (.cc extension)
-CXXSOURCES += $(sort $(notdir $(wildcard $(srcdir)/*.cc)))
-OBJECTS += $(patsubst %.cc,%.o,$(CXXSOURCES))
-
-TARGET = $(top_builddir)/bin/sdcc$(EXEEXT)
-
-# Compiling entire program or any subproject
-# ------------------------------------------
-all: checkconf version.h $(TARGET)
-
-$(PORT_LIBS): FORCE
- $(MAKE) -C $(dir $@)
-
-FORCE:
-
-$(top_builddir)/support/gc/libgc.a:
- $(MAKE) -C $(top_builddir)/support/gc
-
-# Compiling and installing everything and runing test
-# ---------------------------------------------------
-install: all installdirs
- $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)/`echo sdcc|sed '$(transform)'`$(EXEEXT)
- $(STRIP) $(DESTDIR)$(bindir)/`echo sdcc|sed '$(transform)'`$(EXEEXT)
-
-
-# Deleting all the installed files
-# --------------------------------
-uninstall:
- rm -f $(DESTDIR)$(bindir)/`echo sdcc|sed '$(transform)'`$(EXEEXT)
-
-# Performing self-test
-# --------------------
-check:
-
-
-# Performing installation test
-# ----------------------------
-installcheck:
-
-
-# Creating installation directories
-# ---------------------------------
-installdirs:
- $(INSTALL) -d $(DESTDIR)$(bindir)
-
-
-# Creating dependencies
-# ---------------------
-dep: version.h Makefile.dep
-
-Makefile.dep: version.h $(SOURCES) $(CXXSOURCES) $(SLIBSOURCES) $(SPECIAL)
- $(MAKEDEP) $(CPPFLAGS) $(filter %.c,$^) $(filter %.cc,$^) >Makefile.dep
-
-# don't include Makefile.dep for the listed targets:
-ifeq "$(findstring $(MAKECMDGOALS),uninstall check installcheck installdirs checkconf \
- clean distclean mostlyclean realclean)" ""
- -include Makefile.dep
-endif
-include $(srcdir)/clean.mk
-
-
-# My rules
-# --------
-$(TARGET): $(SLIBOBJS) $(OBJECTS) $(PORT_LIBS)
- $(CXX) $(LDFLAGS) -o $@ $(SLIBOBJS) $(OBJECTS) $(PORT_LIBS) $(LIBDIRS) $(LIBS)
-
-.c.o:
- $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
-
-$(SLIBOBJS):%.o:$(SLIB)/%.c
- $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
-
-reswords.h: reswords.gperf Makefile
- gperf -o -k1,2,4 -t -C -N is_reserved_word $< > $@
-
-altlex.o: altlex.c SDCCy.h reswords.h
-
-SDCCy.h: SDCCy.c
-
-SDCCy.c: SDCC.y
- $(YACC) -d $<
- mv y.tab.c $*.c
- mv y.tab.h $*.h
-
-SDCClex.c: SDCC.lex SDCCy.h
- $(LEX) -8 -f -t $< >$@
-
-version.h: ../ChangeLog
- $(AWK) -f $(srcdir)/version.awk $< > $@
-
-.l.c:
- rm -f $*.cc
- $(LEX) -t $< >$*.cc
-
-
-# Remaking configuration
-# ----------------------
-checkconf:
- @if [ -f $(top_builddir)/devel ]; then\
- $(MAKE) -f $(srcdir)/conf.mk srcdir="$(srcdir)" top_builddir="$(top_builddir)" \
- freshconf;\
- fi
-
-# End of main_in.mk/main.mk
diff --git a/src/ds390/Makefile b/src/ds390/Makefile
deleted file mode 100644
index cb704c7..0000000
--- a/src/ds390/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk
diff --git a/src/hc08/Makefile b/src/hc08/Makefile
deleted file mode 100644
index cb704c7..0000000
--- a/src/hc08/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk
diff --git a/src/mcs51/Makefile b/src/mcs51/Makefile
deleted file mode 100644
index cb704c7..0000000
--- a/src/mcs51/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk
diff --git a/src/pdk/Makefile b/src/pdk/Makefile
deleted file mode 100644
index cb704c7..0000000
--- a/src/pdk/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk
diff --git a/src/pic14/Makefile b/src/pic14/Makefile
deleted file mode 100644
index 1c6f129..0000000
--- a/src/pic14/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk
diff --git a/src/pic16/Makefile b/src/pic16/Makefile
deleted file mode 100644
index cb704c7..0000000
--- a/src/pic16/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk
diff --git a/src/regression/Makefile b/src/regression/Makefile
deleted file mode 100644
index 26a7ff3..0000000
--- a/src/regression/Makefile
+++ /dev/null
@@ -1,226 +0,0 @@
-# Regression testing Makefile for Pic Port of SDCC
-#
-# note that this regression suite was started before
-# the one in sdcc/regression. The regression suite in
-# sdcc/regression is better suited for testing mature
-# ports.
-#
-# GPL'd
-#
-# T. Scott Dattalo scott@dattalo.com
-#
-# This makefile provides a means by which the output
-# of the SDCC Compiler can be tested. This version
-# is unique to the PIC (as in Microchip PIC) port.
-# As such it requires the following software:
-#
-# gpasm version 0.11.1 (or greater)
-# gpsim version 0.20.7 (or greater)
-#
-# Usage:
-#
-# make
-# - without any options the whole regression test is
-# performed. The results are placed into a log file
-# (defined by $LOGFILE).
-#
-# make asm
-# - Creates .asm files by compiling the .c files
-#
-# make cod
-# - Creates .cod files by assembling the .asm files
-# (.cod files are symbolic files compatible with
-# MPASM, Microchip's assembler)
-#
-# make stc
-# - Creates .stc files which are script files for
-# gpsim.
-#
-# make clean
-# - removes all of the intermediate files created
-#
-# make cleancod
-# make cleanasm
-# make cleanstc
-# make cleano
-# - removes either the .stc, .asm, .cod or .o files
-
-# verboseness
-#Q ?= # be verbose
-Q ?= @ # be quiet
-
-SDCC_SRC=../..
-SDCC_BIN=../..
-
-CC = $(SDCC_BIN)/bin/sdcc
-LINKER = gplink
-USE_PIC16 ?= 0
-ifeq ($(strip $(filter 1 yes,$(USE_PIC16))),)
-TARGETPIC = 16f877
-#TARGETPIC = 16f84
-CFLAGS = -mpic14 -p$(TARGETPIC)
-DIR = pic14
-else
-TARGETPIC = 18f452
-CFLAGS = -mpic16 -p$(TARGETPIC)
-DIR = pic16
-endif
-CFLAGS += -Wl,-q --no-warn-non-free
-CFLAGS += -Wl,--map
-CFLAGS += -I $(SDCC_SRC)/device/include/$(DIR) -I $(SDCC_SRC)/device/non-free/include/$(DIR)
-CFLAGS += -L $(SDCC_BIN)/device/lib/build/$(DIR) -L $(SDCC_BIN)/device/non-free/lib/build/$(DIR)
-#CFLAGS += --no-pcode-opt
-#CFLAGS += -V
-
-.SUFFIXES: .asm .c .cod .stc
-.NOTPARALLEL:
-
-# Results of the test are placed here:
-LOGFILE = test.log
-
-# Script file for creating gpsim scripts
-CREATESTC = create_stc
-
-# Script file for invoking gpsim
-SIMULATE = simulate
-
-# List the C files to be test here:
-SRC = add.c \
- add2.c \
- add3.c \
- add4.c \
- and1.c \
- and2.c \
- arrays.c \
- b.c \
- bank1.c \
- bool1.c \
- bool2.c \
- bool3.c \
- call1.c \
- compare.c \
- compare10.c \
- compare2.c \
- compare3.c \
- compare4.c \
- compare5.c \
- compare6.c \
- compare7.c \
- compare8.c \
- compare9.c \
- configword.c \
- empty.c \
- for.c \
- init0.c \
- inline.c \
- mult1.c \
- nestfor.c \
- or1.c \
- pcodeopt.c \
- pointer1.c \
- ptrarg.c \
- ptrfunc.c \
- rotate1.c \
- rotate2.c \
- rotate3.c \
- rotate4.c \
- rotate5.c \
- rotate6.c \
- rotate7.c \
- string1.c \
- struct1.c \
- sub.c \
- sub2.c \
- switch1.c \
- while.c \
- xor.c
-
-COD := $(patsubst %.c, %.cod, $(SRC))
-ASM := $(patsubst %.c, %.asm, $(SRC))
-O := $(patsubst %.c, %.o, $(SRC))
-P := $(patsubst %.c, %.p, $(SRC))
-STC := $(patsubst %.c, %.stc, $(SRC))
-HEX := $(patsubst %.c, %.hex, $(SRC))
-LST := $(patsubst %.c, %.lst, $(SRC))
-MAP := $(patsubst %.c, %.map, $(SRC))
-
-all: test
-
-
-# The cod files are generated by sdcc
-.c.cod:
- $(Q)-$(CC) $(CFLAGS) $*.c
-
-# The .stc files are script files for gpsim
-.cod.stc:
- $(Q)-./$(CREATESTC) $*.cod $*.stc
- $(Q)-./$(SIMULATE) $*.stc $(LOGFILE)
-
-# this will also make .stc files
-#%.stc : %.cod
-# ./create_stc $^ $@
-
-# now for the dependencies
-
-cod : $(COD)
-
-o : $(O)
-
-asm : $(ASM)
-
-stc : $(STC)
- echo $(STC)
-
-test: $(STC)
- $(Q)echo "Done - Results are in $(LOGFILE)"
-
-cleancod:
- files="$(COD)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-cleano:
- files="$(O)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-cleanp:
- files="$(P)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-cleanasm:
- files="$(ASM)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-cleanstc:
- files="$(STC)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-cleanhex:
- files="$(HEX)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-cleanlst:
- files="$(LST)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-cleanmap:
- files="$(MAP)" ; \
- for f in $$files ; do \
- if [ -f $$f ]; then rm $$f; fi \
- done ; \
-
-clean: cleancod cleanasm cleanstc cleano cleanp cleanhex cleanlst cleanmap
- if [ -f "$(LOGFILE)" ]; then rm $(LOGFILE); fi
diff --git a/src/stm8/Makefile b/src/stm8/Makefile
deleted file mode 100644
index cb704c7..0000000
--- a/src/stm8/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk
diff --git a/src/z80/Makefile b/src/z80/Makefile
deleted file mode 100644
index cb704c7..0000000
--- a/src/z80/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-srcdir = .
-top_builddir = ../..
-top_srcdir = ../..
-
-# Make all in this directory
-include $(srcdir)/../port.mk