Makefile 1.55 KB
Newer Older
1 2 3

all: copy_graph_to_string.o copy_graph_to_string_interface.o copy_string_to_graph.o copy_string_to_graph_interface.o

4 5
copy_graph_to_string.o: ../common/copy_graph_to_string.c
	gcc -S -O -DLINUX64 ../common/copy_graph_to_string.c -o copy_graph_to_string.a
6 7 8 9 10 11 12 13
	sed -f s2.sed copy_graph_to_string.a > copy_graph_to_string.s
	as copy_graph_to_string.s -o copy_graph_to_string.o
	cp copy_graph_to_string.o "Clean System Files"/copy_graph_to_string.o

copy_graph_to_string_interface.o: copy_graph_to_string_interface.s
	as copy_graph_to_string_interface.s -o copy_graph_to_string_interface.o
	cp copy_graph_to_string_interface.o "Clean System Files"/copy_graph_to_string_interface.o

14 15
copy_string_to_graph.o: ../common/copy_string_to_graph.c
	gcc -S -O -DLINUX64 ../common/copy_string_to_graph.c -o copy_string_to_graph.a
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
	sed -f s2.sed copy_string_to_graph.a > copy_string_to_graph.s
	as copy_string_to_graph.s -o copy_string_to_graph.o
	cp copy_string_to_graph.o "Clean System Files"/copy_string_to_graph.o

copy_string_to_graph_interface.o: copy_string_to_graph_interface.s
	as copy_string_to_graph_interface.s -o copy_string_to_graph_interface.o
	cp copy_string_to_graph_interface.o "Clean System Files"/copy_string_to_graph_interface.o

cleanup:
	rm copy_graph_to_string.o
	rm copy_graph_to_string_interface.o
	rm copy_string_to_graph.o
	rm copy_string_to_graph_interface.o
	rm "Clean System Files"/copy_graph_to_string.o
	rm "Clean System Files"/copy_graph_to_string_interface.o
	rm "Clean System Files"/copy_string_to_graph.o
	rm "Clean System Files"/copy_string_to_graph_interface.o