PCR-Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #
  2. # Default target
  3. #
  4. default: gc.o
  5. include ../config/common.mk
  6. #
  7. # compilation flags, etc.
  8. #
  9. CPPFLAGS = $(INCLUDE) $(CONFIG_CPPFLAGS) \
  10. -DPCR_NO_RENAME -DPCR_NO_HOSTDEP_ERR
  11. #CFLAGS = -DPCR -DSILENT $(CONFIG_CFLAGS)
  12. CFLAGS = -DPCR $(CONFIG_CFLAGS)
  13. SPECIALCFLAGS = # For code involving asm's
  14. ASPPFLAGS = $(INCLUDE) $(CONFIG_ASPPFLAGS) \
  15. -DPCR_NO_RENAME -DPCR_NO_HOSTDEP_ERR -DASM
  16. ASFLAGS = $(CONFIG_ASFLAGS)
  17. LDRFLAGS = $(CONFIG_LDRFLAGS)
  18. LDFLAGS = $(CONFIG_LDFLAGS)
  19. #
  20. #
  21. #
  22. #
  23. # BEGIN PACKAGE-SPECIFIC PART
  24. #
  25. #
  26. #
  27. #
  28. # Fix to point to local pcr installation directory.
  29. PCRDIR= ..
  30. COBJ= alloc.o reclaim.o allchblk.o misc.o os_dep.o mark_rts.o headers.o mark.o obj_map.o pcr_interface.o blacklst.o finalize.o new_hblk.o real_malloc.o dyn_load.o dbg_mlc.o malloc.o stubborn.o checksums.o solaris_threads.o typd_mlc.o ptr_chck.o mallocx.o
  31. CSRC= reclaim.c allchblk.c misc.c alloc.c mach_dep.c os_dep.c mark_rts.c headers.c mark.c obj_map.c pcr_interface.c blacklst.c finalize.c new_hblk.c real_malloc.c dyn_load.c dbg_mlc.c malloc.c stubborn.c checksums.c solaris_threads.c typd_mlc.c ptr_chck.c mallocx.c
  32. SHELL= /bin/sh
  33. default: gc.o
  34. gc.o: $(COBJ) mach_dep.o
  35. $(LDR) $(CONFIG_LDRFLAGS) -o gc.o $(COBJ) mach_dep.o
  36. mach_dep.o: mach_dep.c mips_mach_dep.s rs6000_mach_dep.s if_mach if_not_there
  37. rm -f mach_dep.o
  38. ./if_mach MIPS "" as -o mach_dep.o mips_mach_dep.s
  39. ./if_mach RS6000 "" as -o mach_dep.o rs6000_mach_dep.s
  40. ./if_mach ALPHA "" as -o mach_dep.o alpha_mach_dep.s
  41. ./if_mach SPARC SUNOS5 as -o mach_dep.o sparc_mach_dep.s
  42. ./if_not_there mach_dep.o $(CC) -c $(SPECIALCFLAGS) mach_dep.c
  43. if_mach: if_mach.c gcconfig.h
  44. $(CC) $(CFLAGS) -o if_mach if_mach.c
  45. if_not_there: if_not_there.c
  46. $(CC) $(CFLAGS) -o if_not_there if_not_there.c