summaryrefslogtreecommitdiff
path: root/libc/bios/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bios/Makefile')
-rw-r--r--libc/bios/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/libc/bios/Makefile b/libc/bios/Makefile
new file mode 100644
index 0000000..934ec07
--- /dev/null
+++ b/libc/bios/Makefile
@@ -0,0 +1,30 @@
+# Copyright (C) 1996 Robert de Bath <robert@mayday.compulink.co.uk>
+# This file is part of the Linux-8086 C library and is distributed
+# under the GNU Library General Public License.
+
+TOP=..
+include $(TOP)/Make.defs
+
+ifeq ($(LIB_OS),BIOS)
+ASRC=bios.c
+AOBJ=bios_start.o bios_isatty.o \
+ bios_open.o bios_read.o bios_write.o bios_lseek.o bios_close.o
+
+BSRC=bios_vid.c
+BOBJ=bios_putc.o bios_getc.o bios_rdline.o
+endif
+
+all: $(AOBJ) $(BOBJ)
+
+libc.a: $(AOBJ) $(BOBJ)
+ ar r ../$(LIBC) $(AOBJ) $(BOBJ)
+ @touch libc.a
+
+clean:
+ rm -f *.o libc.a
+
+$(AOBJ): $(ASRC)
+ $(CC) $(CFLAGS) -c -DL_$* -o $@ $(ASRC)
+
+$(BOBJ): $(BSRC)
+ $(CC) $(CFLAGS) -c -DL_$* -o $@ $(BSRC)