home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.0 / LINUX-1.0 / LINUX-1 / linux / lib / Makefile < prev    next >
Encoding:
Makefile  |  1993-12-01  |  612 b   |  33 lines

  1. #
  2. # Makefile for some libs needed in the kernel.
  3. #
  4. # Note! Dependencies are done automagically by 'make dep', which also
  5. # removes any old dependencies. DON'T put your own dependencies here
  6. # unless it's something special (ie not a .c file).
  7. #
  8.  
  9. .c.s:
  10.     $(CC) $(CFLAGS) -S $<
  11. .s.o:
  12.     $(AS) -c -o $*.o $<
  13. .c.o:
  14.     $(CC) $(CFLAGS) -c $<
  15.  
  16. OBJS  = ctype.o _exit.o open.o close.o errno.o write.o dup.o setsid.o \
  17.     execve.o wait.o string.o
  18.  
  19. lib.a: $(OBJS)
  20.     $(AR) rcs lib.a $(OBJS)
  21.     sync
  22.  
  23. dep:
  24.     $(CPP) -M *.c > .depend
  25.  
  26. #
  27. # include a dependency file if one exists
  28. #
  29. ifeq (.depend,$(wildcard .depend))
  30. include .depend
  31. endif
  32.  
  33.