blob: 165d16cbdd52c3c2cf24b6041f326c4c153e3da7 (
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
|
# 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.
TOPDIR=../../../
include $(TOPDIR)Rules.make
LIBC=$(TOPDIR)libc.a
CFLAGS+= -D_GCC_LIMITS_H_
MSRC=syscalls.S
include makefile.objs
SFILES=setjmp.S longjmp.S _start.S _exit.S #fork.o
SOBJS=$(patsubst %.S,%.o, $(SFILES))
CFILES=readdir.c #select.c
COBJS=$(patsubst %.c,%.o, $(CFILES))
all: $(SOBJS) $(COBJS) $(MOBJ) $(LIBC)
$(SOBJS): $(SFILES)
$(CC) $(CFLAGS) -c $*.S -o $@
$(COBJS): $(CFILES)
$(CC) $(CFLAGS) -c $*.c -o $@
$(MOBJ): $(MSRC)
$(CC) $(CFLAGS) -DL_$* -c $(MSRC) -o $@
$(LIBC): $(SOBJS) $(COBJS) $(MOBJ)
$(AR) $(ARFLAGS) $(LIBC) $(SOBJS) $(COBJS) $(MOBJ)
clean:
rm -f *.o
|