blob: cdafaa3d4480c5ab4c121d943a920c628c22a2ed (
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
31
32
33
34
35
36
37
38
|
# Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.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
ASRC=msdos.c
AOBJ= dos_start.o __mkargv.o dos__fconv.o dos_read.o dos_write.o \
dos_open.o dos_close.o dos_unlink.o dos_lseek.o \
dos_segalloc.o dos_segfree.o dos_setvect.o dos_getvect.o \
dos_isatty.o dos_getmod.o dos_stat.o
BSRC=i86.c
BOBJ= __seg_regs.o __peek_es.o __poke_es.o __deek_es.o __doke_es.o \
__strchr_es.o
ifeq ($(PLATFORM),i86-DOS)
OBJ=$(AOBJ) $(BOBJ)
else
OBJ=$(BOBJ)
endif
all: $(OBJ)
libc.a: $(OBJ)
ar r ../$(LIBC) $(OBJ)
@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)
|