diff options
Diffstat (limited to 'libc-0.0.4/syscall/Makefile')
-rw-r--r-- | libc-0.0.4/syscall/Makefile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/libc-0.0.4/syscall/Makefile b/libc-0.0.4/syscall/Makefile new file mode 100644 index 0000000..6a2b9bb --- /dev/null +++ b/libc-0.0.4/syscall/Makefile @@ -0,0 +1,45 @@ +# 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 + +OBJ=$(LOBJ) $(DOBJ) $(EOBJ) signal.o setjmp.o execve.o + +all: mksyscall syscall.dat $(OBJ) + sh mksyscall + +clean: + sh mksyscall clean + rm -f libc.a syscall.c syscall.mak call_tab.v defn_tab.v $(OBJ) + +libdos.a: setjmp.o + ar r ../libc.a setjmp.o + @touch libc.a + +libc.a: mksyscall syscall.dat $(OBJ) + sh mksyscall libc.a + ar r ../libc.a $(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) + |