home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / lib / Makefile < prev    next >
Encoding:
Makefile  |  1995-01-16  |  632 b   |  34 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 vsprintf.o
  18.  
  19. lib.a: $(OBJS)
  20.     $(AR) rcs lib.a $(OBJS)
  21.     sync
  22.  
  23. modules:
  24. dep:
  25.     $(CPP) -M *.c > .depend
  26.  
  27. #
  28. # include a dependency file if one exists
  29. #
  30. ifeq (.depend,$(wildcard .depend))
  31. include .depend
  32. endif
  33.  
  34.