home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / D / LIBC / LIBC-4.6 / LIBC-4 / libc-linux / sysdeps / linux / Makefile < prev    next >
Encoding:
Makefile  |  1994-11-15  |  2.3 KB  |  69 lines

  1. #
  2. # Makefile for Linux specific functions
  3. #
  4.  
  5. TOPDIR=../..
  6.  
  7. include $(TOPDIR)/Makeconfig
  8. include $(TOPDIR)/Makerules
  9.  
  10. INC_CFLAGS= -I./$(TARGET_ARCH) -I$(TOPDIR)
  11. BASE_CFLAGS:= $(BASE_CFLAGS) -DLDSO_ADDR=$(LDSO_ENTRY) \
  12.     -DTARGET_MACHINE=\"$(TARGET_MACHINE)\"
  13.  
  14. ifeq ($(MATH),true)
  15.  
  16. lib all:
  17.     ($(MAKE) -C $(TARGET_ARCH) $@)
  18.  
  19. else    # the math library
  20.  
  21. ifneq ($(ELF),true)
  22. OPT_SRC1S=__load.c 
  23. endif
  24.  
  25. DIRS=$(TARGET_ARCH)
  26. SRC1S= __bsd_sig.c __flock.c __fpathconf.c __getdtsz.c \
  27.     __gethstnm.c __getpgsz.c __isatty.c __pathconf.c \
  28.     __sigblock.c __siggtmsk.c __sigpause.c __sigstmsk.c \
  29.     __sysconf.c __tcgetatr.c __utimes.c _errlist.c _siglist.c \
  30.     getdnnm.c mkfifo.c morecore.c nlist.c setegid.c \
  31.     seteuid.c signal.c \
  32.     __adjtime.c __ntpgttm.c __wait.c __wait3.c \
  33.     __waitpid.c accept.c bind.c connect.c getpeernam.c \
  34.     getsocknam.c getsockopt.c listen.c mmap.c \
  35.     shmat.c shmctl.c shmdt.c shmget.c \
  36.     msgctl.c msgget.c msgrcv.c msgsnd.c \
  37.     semctl.c semget.c semop.c \
  38.     recv.c revcfrom.c send.c sendto.c setpgrp.c setsockopt.c \
  39.     shutdown.c socket.c socketpair.c tell.c ulimit.c \
  40.     set-init.c $(OPT_SRC1S)
  41. SRC2S=    __access.S __chdir.S __chmod.S __chown.S __close.S __dup.S \
  42.     __dup2.S __execve.S __fchmod.S __fchdir.S __fchown.S __fcntl.S \
  43.     __fork.S __fstat.S __fstatfs.S __getegid.S __geteuid.S \
  44.     __getgid.S __getgrps.S __getitmr.S __getpid.S __getppid.S \
  45.     __getrusag.S __gettod.S __getuid.S __ioctl.S __kill.S \
  46.     __link.S __lseek.S __lstat.S __mkdir.S __mknod.S __open.S \
  47.     __pipe.S __read.S __readlink.S __rmdir.S __setgid.S \
  48.     __setitmr.S __setregid.S __setreuid.S __setsid.S __settod.S \
  49.     __setuid.S __sigproc.S __stat.S __statfs.S \
  50.     __symlink.S __times.S __umask.S __uname.S __unlink.S \
  51.     __wait4.S __write.S acct.S alarm.S chroot.S creat.S \
  52.     fsync.S ftruncate.S getpgrp.S getrlimit.S idle.S ioperm.S \
  53.     iopl.S mount.S munmap.S nice.S pause.S reboot.S \
  54.     rename.S setdnnm.S setgroups.S sethstnm.S setpgid.S \
  55.     setprio.S setrlimit.S sigpending.S stime.S swapoff.S \
  56.     swapon.S sync.S time.S truncate.S umount.S uselib.S \
  57.     ustat.S utime.S vhangup.S vm86.S mprotect.S \
  58.     __adjtimex.S getpgid.S __ipc.S
  59. SRC3S= fstatfs.c statfs.c uname.c __vfork.c vfork.c
  60.  
  61. SRCS=$(SRC1S) $(SRC2S) $(SRC3S)
  62. ASMS= $(SRC1S:.c=.s) $(SRC2S:.S=.s) $(SRC3S:.c=.s)
  63. OBJS= $(SRC1S:.c=.o) $(SRC2S:.S=.o)
  64. ALIASES=$(SRC3S:.c=.o)
  65.  
  66. include $(TOPDIR)/Maketargets
  67.  
  68. endif    # the math library
  69.