blob: 934ec07f0b2156b312de9ddef0291a5e1b7c8ce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)
|