blob: 2cc4494e5f306bc7602341322d7c500aea0ed6ed (
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.
TOP=..
include $(TOP)/Make.defs
LSRC=syslibc.c
LOBJ=__cstartup.o time.o lseek.o getpid.o getppid.o \
getuid.o geteuid.o getgid.o getegid.o \
dup2.o dup.o abort.o wait.o waitpid.o sleep.o
ESRC=execve.c
EOBJ=execve.o execl.o execv.o execle.o
DSRC=dirent.c
DOBJ=opendir.o closedir.o readdir.o
ifeq ($(PLATFORM),i86-DOS)
OBJ=setjmp.o
else
OBJ=$(LOBJ) $(DOBJ) $(EOBJ) signal.o setjmp.o execve.o
endif
all: mksyscall syscall.dat $(OBJ)
sh mksyscall
clean:
rm -f *.o libc.a syscall.c syscall.mak call_tab.v defn_tab.v
libc.a: mksyscall syscall.dat $(OBJ)
sh mksyscall libc.a
ar r ../$(LIBC) $(OBJ)
@touch libc.a
$(LOBJ): $(LSRC)
$(CC) $(CFLAGS) -c -DL_$* -o $@ $(LSRC)
$(DOBJ): $(DSRC)
$(CC) $(CFLAGS) -c -DL_$* -o $@ $(DSRC)
$(EOBJ): $(ESRC)
$(CC) $(CFLAGS) -c -DL_$* -o $@ $(ESRC)
|