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 / m68k / Makefile < prev    next >
Encoding:
Makefile  |  1994-11-19  |  1.3 KB  |  60 lines

  1. #
  2. # Makefile of Linux specific functions for m68k
  3. #
  4.  
  5. TOPDIR=../../..
  6.  
  7. include $(TOPDIR)/Makeconfig
  8. include $(TOPDIR)/Makerules
  9.  
  10. INC_CFLAGS=-I$(TOPDIR) -I.
  11.  
  12. ifeq ($(MATH),true)
  13.  
  14. lib all:
  15.     ($(MAKE) -C math $@)
  16.  
  17. else
  18.  
  19. DIRS:=math crt
  20.  
  21. ifeq ($(PROFILE),true)
  22. DIRS:=$(DIRS) gmon
  23. endif
  24.  
  25. SRC1S = __brk.c  __sbrk.c __select.c __sigact.c getprio.c \
  26.     ptrace.c readdir.c sigsuspend.c syscall.c libc_exit.c \
  27.     __setfpucw.c __fpu_control.c
  28. # __load.c __adjtime.c __ntpgttm.c __wait.c __wait3.c __waitpid.c
  29. # accept.c bind.c msgget.c msgrcv.c msgsnd.c msgctl.c semget.c
  30. # semop.c semctl.c listen.c mmap.c socket.c socketpair.c tell.c
  31. # ulimit.c recv.c revcfrom.c send.c sendto.c setpgrp.c setsockopt.c
  32. # shutdown.c connect.c getpeernam.c getsocknam.c getsockopt.c
  33. # shmget.c shmat.c shmdt.c shmctl.c
  34. #SRC2S = __vfork.c vfork.c
  35. SRC3S = ____sig.S # __adjtimex.S
  36.  
  37. SRCS= $(SRC1S) $(SRC2S) $(SRC3S)
  38. ASMS= $(SRC1S:.c=.s) $(SRC2S:.c=.s) $(SRC3S:.S=.s)
  39. OBJS= $(SRC1S:.c=.o) $(SRC3S:.S=.o)
  40. ALIASES= $(SRC2S:.c=.o)
  41.  
  42. include $(TOPDIR)/Maketargets
  43.  
  44. ifeq ($(STATIC),true)
  45.  
  46. LIBIEEE=$(STATIC_DIR)/libieee.a
  47.  
  48. lib:: $(LIBIEEE)
  49.  
  50. $(STATIC_DIR)/$(SUBDIR)/ieee.o: ieee.c
  51.     $(CC) $(CFLAGS) -c $< -o $@
  52.  
  53. $(LIBIEEE): $(STATIC_DIR)/$(SUBDIR)/ieee.o
  54.     $(RM) -f $(LIBIEEE)
  55.     $(AR) $(AR_FLAGS) $(LIBIEEE) $?
  56.     $(REALRANLIB) $(LIBIEEE)
  57. endif
  58.  
  59. endif
  60.