Makefile 1.02 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# Build graph_copy for Linux ARM devices (e.g. Android or Raspberry Pi)
CC=gcc
AS=as
OUTDIR="Clean System Files"

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

copy_graph_to_string.o: ../common/copy_graph_to_string.c
	mkdir -p $(OUTDIR)
	$(CC) $(CFLAGS) -fomit-frame-pointer -O -c -DLINUX32 ../common/copy_graph_to_string.c -o $(OUTDIR)/copy_graph_to_string.o

copy_string_to_graph.o:	../common/copy_string_to_graph.c
	mkdir -p $(OUTDIR)
	$(CC) $(CFLAGS) -fomit-frame-pointer -O -c -DLINUX32 ../common/copy_string_to_graph.c -o $(OUTDIR)/copy_string_to_graph.o

copy_graph_to_string_interface.o: copy_graph_to_string_interface_linux_arm.s
	mkdir -p $(OUTDIR)
	$(AS) $(ASFLAGS) copy_graph_to_string_interface_linux_arm.s -o $(OUTDIR)/copy_graph_to_string_interface.o

copy_string_to_graph_interface.o: copy_string_to_graph_interface_linux_arm.s
	mkdir -p $(OUTDIR)
	$(AS) $(ASFLAGS) copy_string_to_graph_interface_linux_arm.s -o $(OUTDIR)/copy_string_to_graph_interface.o