proto.make 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # $Header$
  2. #PARAMS do not remove this line!
  3. INTS=em_t--- em_---- em_tf-- em_t-c- em_t--p
  4. SRC_DIR = $(SRC_HOME)/mach/pdp/int
  5. CFLAGS = $(COPTIONS) -I$(TARGET_HOME)/h -I$(TARGET_HOME)/config
  6. LDFLAGS = $(LDOPTIONS)
  7. b=$(TARGET_HOME)/lib.bin/em22
  8. all: $(INTS) eminform em
  9. em: em.o
  10. $(CC) $(LDFLAGS) -o em em.c
  11. em.o: $(SRC_DIR)/em.c
  12. $(CC) $(CFLAGS) -c $(SRC_DIR)/em.c
  13. eminform: $(SRC_DIR)/eminform.s
  14. as $(SRC_DIR)/eminform.s;ld -i -o eminform a.out -lc
  15. em_t---: $(SRC_DIR)/t+ $(SRC_DIR)/f- $(SRC_DIR)/c- $(SRC_DIR)/p- $(SRC_DIR)/em_int.s
  16. as $(SRC_DIR)/t+ $(SRC_DIR)/f- $(SRC_DIR)/c- $(SRC_DIR)/p- $(SRC_DIR)/em_int.s;ld -i -o em_t--- a.out -lc
  17. em_----: $(SRC_DIR)/t- $(SRC_DIR)/f- $(SRC_DIR)/c- $(SRC_DIR)/p- $(SRC_DIR)/em_int.s
  18. as $(SRC_DIR)/t- $(SRC_DIR)/f- $(SRC_DIR)/c- $(SRC_DIR)/p- $(SRC_DIR)/em_int.s;ld -i -o em_---- a.out -lc
  19. em_tf--: $(SRC_DIR)/t+ $(SRC_DIR)/f+ $(SRC_DIR)/c- $(SRC_DIR)/p- $(SRC_DIR)/em_int.s
  20. as $(SRC_DIR)/t+ $(SRC_DIR)/f+ $(SRC_DIR)/c- $(SRC_DIR)/p- $(SRC_DIR)/em_int.s;ld -i -o em_tf-- a.out -lc
  21. em_t-c-: $(SRC_DIR)/t+ $(SRC_DIR)/f- $(SRC_DIR)/c+ $(SRC_DIR)/p- $(SRC_DIR)/em_int.s
  22. as $(SRC_DIR)/t+ $(SRC_DIR)/f- $(SRC_DIR)/c+ $(SRC_DIR)/p- $(SRC_DIR)/em_int.s;ld -i -o em_t-c- a.out -lc
  23. em_t--p: $(SRC_DIR)/t+ $(SRC_DIR)/f- $(SRC_DIR)/c- $(SRC_DIR)/p+ $(SRC_DIR)/em_int.s
  24. as $(SRC_DIR)/t+ $(SRC_DIR)/f- $(SRC_DIR)/c- $(SRC_DIR)/p+ $(SRC_DIR)/em_int.s;ld -i -o em_t--p a.out -lc
  25. install: all
  26. -mkdir $b
  27. cp em_???? $b
  28. cp em eminform $(TARGET_HOME)/bin
  29. cp $(SRC_DIR)/em.1 $(SRC_DIR)/eminform.1 $(TARGET_HOME)/man
  30. cmp: all
  31. -cmp em_t--- $b/em_t---
  32. -cmp em_---- $b/em_----
  33. -cmp em_tf-- $b/em_tf--
  34. -cmp em_t-c- $b/em_t-c-
  35. -cmp em_t--p $b/em_t--p
  36. -cmp em $(TARGET_HOME)/bin/em
  37. -cmp eminform $(TARGET_HOME)/bin/eminform
  38. -cmp $(SRC_DIR)/em.1 $(TARGET_HOME)/man/em.1
  39. -cmp $(SRC_DIR)/eminform.1 $(TARGET_HOME)/man/eminform.1
  40. clean:
  41. -rm -f *.o *.old a.out em eminform $(INTS)
  42. opr:
  43. make pr | opr
  44. pr:
  45. @pr $(SRC_DIR)/em.c $(SRC_DIR)/em_int.s $(SRC_DIR)/eminform.s