2 CFLAGS=-march=athlon-xp -O2
6 aes_test: aes.o aes_test.o
7 $(CC) $(CFLAGS) -o $@ $^
9 problem2: aes.o problem2.o
10 $(CC) $(CFLAGS) -o $@ $^
12 problem3: aes.o problem3.o
13 $(CC) $(CFLAGS) -o $@ $^
16 rm -f *.o aes_test problem2 problem3
18 rm -f homework.out p2_output.txt p3_output.txt
21 $(CC) $(CFLAGS) -c -o $@ $<
26 @cat Problem2.in | ./$<
31 pdf: homework.tex problem2 problem3
32 ./problem2 < Problem2.in > p2_output.txt
33 ./problem3 > p3_output.txt
35 latexmk -pdf homework.tex
37 .PHONY: run all clean pdf