]> git.gag.com Git - fw/sdcc/blobdiff - device/lib/mcs51/Makefile.in
Enabled VPATH feature: changed nearly all Makefiles (149 files).
[fw/sdcc] / device / lib / mcs51 / Makefile.in
diff --git a/device/lib/mcs51/Makefile.in b/device/lib/mcs51/Makefile.in
new file mode 100644 (file)
index 0000000..29ce7c0
--- /dev/null
@@ -0,0 +1,40 @@
+VPATH  = @srcdir@
+srcdir = @srcdir@
+
+top_srcdir   = @top_srcdir@
+top_builddir = @top_builddir@
+
+SAS = $(top_builddir)bin/asx8051
+SCC = $(top_builddir)bin/sdcc
+
+OBJ = crtstart.rel crtxinit.rel crtxclear.rel crtclear.rel crtxstack.rel \
+      crtpagesfr.rel crtbank.rel
+
+LIB = mcs51.lib
+
+CC = $(SCC)
+AS = $(SAS)
+ASFLAGS = -plosgff
+
+CFLAGS = -I$(top_srcdir)/include
+
+all: $(LIB)
+
+$(LIB): $(OBJ) Makefile
+       rm -f $(LIB)
+       for i in $(OBJ); do echo $$i >> $(LIB); done
+
+%.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
\ No newline at end of file