summaryrefslogtreecommitdiff
path: root/libc/bios/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bios/Makefile')
-rw-r--r--libc/bios/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/libc/bios/Makefile b/libc/bios/Makefile
new file mode 100644
index 0000000..5fcc964
--- /dev/null
+++ b/libc/bios/Makefile
@@ -0,0 +1,35 @@
+# 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.
+
+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_khit.o bios_rdline.o
+
+OBJ=$(AOBJ) $(BOBJ)
+
+CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
+
+all: $(LIBC)($(OBJ))
+ @:
+
+$(LIBC)($(AOBJ)): $(ASRC)
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(AR) $(ARFLAGS) $@ $*.o
+ $(RM) $*.o
+
+$(LIBC)($(BOBJ)): $(BSRC)
+ $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
+ $(AR) $(ARFLAGS) $@ $*.o
+ $(RM) $*.o
+else
+all:
+ @:
+endif
+
+clean:
+ rm -f *.o libc.a