blob: 0a53679a54d0cbc11034875850b59e0a3c7ff2dc (
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
39
40
41
42
43
44
|
# 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.
ASRC=msdos.c
AOBJ= \
dos_start.o __exterror.o __mkargv.o __mkenvp.o bdos.o \
dos__fconv.o dos_abort.o dos_close.o dos_getmod.o dos_getvect.o \
dos_isatty.o dos_lseek.o dos_open.o dos_read.o dos_segalloc.o \
dos_segfree.o dos_setvect.o dos_stat.o dos_unlink.o dos_write.o
BSRC=i86.c
BOBJ= __seg_regs.o __peek_es.o __poke_es.o __deek_es.o __doke_es.o \
__strnget_es.o __strchr_es.o __strlen_es.o int86.o int86x.o segread.o
ifeq ($(LIB_CPU),i86)
ifeq ($(LIB_OS),DOS)
OBJ=$(AOBJ) $(BOBJ) time.o sound.o
else
OBJ=$(BOBJ)
endif
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
all: $(LIBC)
@$(RM) $(OBJ)
$(LIBC): $(LIBC)($(OBJ))
$(LIBC)($(AOBJ)): $(ASRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(AR) $(ARFLAGS) $@ $*.o
$(LIBC)($(BOBJ)): $(BSRC)
$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
$(AR) $(ARFLAGS) $@ $*.o
else
all:
@:
endif
clean:
rm -f *.o libc.a
|