Makefile 746 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $Header$
  2. # This Makefile is used for building the source archive as well as the
  3. # actual library.
  4. EMHOME=../../..
  5. MACH=acc
  6. MACHFL=-c.$(SUF) -O -L -Rcem=$(EMHOME)/lang/cem/libcc.new/main -I../headers \
  7. $(DEFS)
  8. PREF=ancc
  9. SUB=
  10. ASAR=arch
  11. HEADSRC=$(HOME)
  12. OLIB=tail_$(PREF)$(SUB)
  13. libsrc:
  14. MakeArch
  15. tail: $(OLIB)
  16. tailcp: tail
  17. ../../install $(OLIB)
  18. rm -f $(OLIB)
  19. $(OLIB):
  20. @echo translation test
  21. libc:
  22. MACH=$(MACH) MACHFL="$(MACHFL) -LIB" ASAR=$(ASAR) \
  23. OLIB=$(OLIB) MakeArch -o
  24. $(ASAR):
  25. @rm -f OLIST
  26. @sed 's/\.[ce]/.$(SUF)/' < LIST | sed '/\.h/D' > OLIST
  27. make "CC=$(MACH)" "MACHFL=$(MACHFL)" `cat OLIST`
  28. # arch doesn't work recursively, tar does, which is what we actually want
  29. tar:
  30. @rm -f OLIST
  31. make `cat LIST`
  32. cp LIST OLIST