Makefile 1.53 KB
Newer Older
1 2 3 4 5 6 7 8 9

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

copy_graph_to_string.o: copy_graph_to_string.c
	gcc -S -O -DLINUX64 copy_graph_to_string.c -o copy_graph_to_string.a
	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

10 11
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
12 13 14 15 16 17 18 19
	cp copy_graph_to_string_interface.o "Clean System Files"/copy_graph_to_string_interface.o

copy_string_to_graph.o: copy_string_to_graph.c
	gcc -S -O -DLINUX64 copy_string_to_graph.c -o copy_string_to_graph.a
	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

20 21
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
22
	cp copy_string_to_graph_interface.o "Clean System Files"/copy_string_to_graph_interface.o
John van Groningen's avatar
John van Groningen committed
23 24

cleanup:
Mart Lubbers's avatar
Mart Lubbers committed
25 26 27 28 29 30 31 32
	rm -f copy_graph_to_string.o
	rm -f copy_graph_to_string_interface.o
	rm -f copy_string_to_graph.o
	rm -f copy_string_to_graph_interface.o
	rm -f "Clean System Files"/copy_graph_to_string.o
	rm -f "Clean System Files"/copy_graph_to_string_interface.o
	rm -f "Clean System Files"/copy_string_to_graph.o
	rm -f "Clean System Files"/copy_string_to_graph_interface.o
John van Groningen's avatar
John van Groningen committed
33