summaryrefslogtreecommitdiff
path: root/device/lib/mcs51
diff options
context:
space:
mode:
authorXavi Del Campo <xavi.dcr@tutanota.com>2019-11-05 17:56:35 +0100
committerXavi Del Campo <xavi.dcr@tutanota.com>2019-11-05 17:56:35 +0100
commite524f157266c07a7a4cf3b766edd6ff9db98e4f4 (patch)
tree3dcbf507b5ec87d297f833df79cb532c3844032f /device/lib/mcs51
parent1dcefbf527e52315abfe3b4871272b3fd9bb0f4b (diff)
downloadsdcc-gas-e524f157266c07a7a4cf3b766edd6ff9db98e4f4.tar.gz
Removed intermediate files
Diffstat (limited to 'device/lib/mcs51')
-rw-r--r--device/lib/mcs51/Makefile62
1 files changed, 0 insertions, 62 deletions
diff --git a/device/lib/mcs51/Makefile b/device/lib/mcs51/Makefile
deleted file mode 100644
index cd35c94..0000000
--- a/device/lib/mcs51/Makefile
+++ /dev/null
@@ -1,62 +0,0 @@
-# libc/mcs51 Makefile
-
-
-srcdir = .
-
-top_srcdir = ../../..
-top_builddir = ../../..
-
-LIB_TYPE = RANLIB
-SAS = $(top_builddir)/bin/sdas8051
-SCC = $(top_builddir)/bin/sdcc
-
-# override PORTDIR defined by super (parent) makefile
-override PORTDIR = ../build/$(PORT)
-
-OBJ = crtstart.rel crtxinit.rel crtxclear.rel crtclear.rel \
- crtpagesfr.rel crtbank.rel crtcall.rel \
- crtxstack.rel crtxpush.rel crtxpushr0.rel crtxpop.rel crtxpopr0.rel \
- gptr_cmp.rel
-
-LIB = mcs51.lib
-
-CC = $(SCC)
-AS = $(SAS)
-ASFLAGS = -plosgff
-
-CFLAGS = -I$(top_srcdir)/include --std-c11
-
-all: $(PORTDIR)/$(LIB)
-
-$(PORTDIR)/$(LIB): $(OBJ) Makefile
-ifeq ($(LIB_TYPE), SDCCLIB)
- rm -f $@; \
- $(top_builddir)/bin/sdcclib -a $@ $(OBJ)
-else
- ifeq ($(LIB_TYPE), AR)
- $(top_builddir)/bin/sdar -rcSD $@ $(OBJ)
- else
- ifeq ($(LIB_TYPE), RANLIB)
- $(top_builddir)/bin/sdar -rcD $@ $(OBJ)
- else
- rm -f $@
- for i in $(basename $(OBJ)); do echo $$i >>$@; done
- cp $(OBJ) $(PORTDIR)
- endif
- endif
-endif
-
-%.rel: %.c
- $(CC) $(CFLAGS) -c $<
-
-%.rel: %.asm
- @# TODO: asx8051 should place it\'s output in the current dir
- test $(srcdir) = . || cp $< .
- -$(AS) $(ASFLAGS) $(notdir $<)
- test $(srcdir) = . || rm $(notdir $<)
-
-clean:
- rm -f *.rel *.sym *.lst *~ $(CLEANSPEC) *.dump* *.lib
-
-distclean: clean
- rm -r Makefile