Jabberwocky submission for Computer Organization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
880 B

  1. CC = gcc
  2. FLAGS = -g
  3. OBJ = atob.o btoa.o jabber.o wocky.o
  4. EXEC = atob btoa jabber wocky test-me
  5. TEST_ASCII = hollow
  6. all: $(EXEC)
  7. test-me: jabber wocky atob btoa
  8. ./atob $(TEST_ASCII).txt bit-$(TEST_ASCII).txt;
  9. ./jabber bit-$(TEST_ASCII).txt zap-$(TEST_ASCII).txt;
  10. ./wocky zap-$(TEST_ASCII).txt kapow-$(TEST_ASCII).txt;
  11. ./btoa kapow-$(TEST_ASCII).txt out.txt;
  12. diff $(TEST_ASCII).txt out.txt
  13. jabber: jabber.o
  14. $(CC) $(FLAGS) -o jabber jabber.o
  15. wocky: wocky.o
  16. $(CC) $(FLAGS) -o wocky wocky.o
  17. atob: atob.o
  18. $(CC) $(FLAGS) -o atob atob.o
  19. btoa: btoa.o
  20. $(CC) $(FLAGS) -o btoa btoa.o
  21. jabber.o: jabber.c
  22. $(CC) $(FLAGS) -c jabber.c
  23. wocky.o: wocky.c
  24. $(CC) $(FLAGS) -c wocky.c
  25. atob.o: atob.c
  26. $(CC) $(FLAGS) -c atob.c
  27. btoa.o: btoa.c
  28. $(CC) $(FLAGS) -c btoa.c
  29. clean:
  30. rm -f $(OBJ) $(EXEC) bit-$(TEST_ASCII).txt zap-$(TEST_ASCII).txt kapow-$(TEST_ASCII).txt out.txt