Makefile 552 B

1234567891011121314151617181920212223242526272829
  1. # Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
  2. # This file is part of the Linux-8086 C library and is distributed
  3. # under the GNU Library General Public License.
  4. TOPDIR=../../../
  5. include $(TOPDIR)Rules.make
  6. CFLAGS+= -D_GCC_LIMITS_H_
  7. LIBC=$(TOPDIR)libc.a
  8. .S.s:
  9. $(CC) $(CFLAGS) -D__ASSEMBLY__ -traditional -E -o $*.s $<
  10. .S.o:
  11. $(CC) $(CFLAGS) -c -o $*.o $<
  12. include makefile.objs
  13. all: $(LIBC)
  14. $(LIBC): $(OBJ)
  15. $(AR) $(ARFLAGS) $@ $(OBJ)
  16. transfer:
  17. -@rm -f ../include/stdio.h
  18. cp -p stdio.h ../include/.
  19. clean:
  20. rm -f *.o