diff options
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) + |