Makefile 745 B

1234567891011121314151617181920212223242526272829303132333435
  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. SSRC=syscalls.S
  13. OBJ= setjmp.o longjmp.o readdir.o _start.o _exit.o fork.o #select.o
  14. include makefile.objs
  15. all: $(LIBC)
  16. $(LIBC): $(OBJ) $(LIBC)($(SOBJ))
  17. $(AR) $(ARFLAGS) $@ $(OBJ)
  18. $(LIBC)($(SOBJ)): $(SSRC)
  19. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  20. $(AR) $(ARFLAGS) $@ $*.o
  21. transfer:
  22. -@rm -f ../include/stdio.h
  23. cp -p stdio.h ../include/.
  24. clean:
  25. rm -f *.o