diff options
author | Robert de Bath <rdebath@poboxes.com> | 1996-03-24 21:25:23 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:29:54 +0200 |
commit | dcc973ea3e31710429858c99d4f040334ac67c06 (patch) | |
tree | 8883b902eb18eba489957b7f03caa491fd7992a7 /libc/syscall/Makefile | |
parent | fe22c37817ce338fbbc90b239320248c270957fa (diff) | |
download | dev86-dcc973ea3e31710429858c99d4f040334ac67c06.tar.gz |
Import Dev86-0.0.5.tar.gzv0.0.5
Diffstat (limited to 'libc/syscall/Makefile')
-rw-r--r-- | libc/syscall/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libc/syscall/Makefile b/libc/syscall/Makefile new file mode 100644 index 0000000..2cc4494 --- /dev/null +++ b/libc/syscall/Makefile @@ -0,0 +1,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) + |