Commit 45f052b8 authored by Arjan Oortgiese's avatar Arjan Oortgiese

Support CC and AS overriding to support cross compilers.

parent 2e0d8939
CC=gcc
AS=as
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: ../common/copy_graph_to_string.c
gcc -O -S -fomit-frame-pointer -DLINUX32 ../common/copy_graph_to_string.c -o copy_graph_to_string.a
$(CC) $(CFLAGS) -O -S -fomit-frame-pointer -DLINUX32 ../common/copy_graph_to_string.c -o copy_graph_to_string.a
sed -f ../tools/intel32.sed copy_graph_to_string.a > copy_graph_to_string.s
as copy_graph_to_string.s -o copy_graph_to_string.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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
copy_string_to_graph.o: ../common/copy_string_to_graph.c
gcc -O -S -fomit-frame-pointer -DLINUX32 ../common/copy_string_to_graph.c -o copy_string_to_graph.a
$(CC) $(CFLAGS) -O -S -fomit-frame-pointer -DLINUX32 ../common/copy_string_to_graph.c -o copy_string_to_graph.a
sed -f ../tools/intel32.sed copy_string_to_graph.a > copy_string_to_graph.s
as copy_string_to_graph.s -o copy_string_to_graph.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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:
......
CC=gcc
AS=as
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: ../common/copy_graph_to_string.c
gcc -S -O -DLINUX64 ../common/copy_graph_to_string.c -o copy_graph_to_string.a
$(CC) $(CFLAGS) -S -O -DLINUX64 ../common/copy_graph_to_string.c -o copy_graph_to_string.a
sed -f ../tools/intel64.sed copy_graph_to_string.a > copy_graph_to_string.s
as copy_graph_to_string.s -o copy_graph_to_string.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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
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
$(CC) $(CFLAGS) -S -O -DLINUX64 ../common/copy_string_to_graph.c -o copy_string_to_graph.a
sed -f ../tools/intel64.sed copy_string_to_graph.a > copy_string_to_graph.s
as copy_string_to_graph.s -o copy_string_to_graph.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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:
......
CC=gcc
AS=as
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: ../common/copy_graph_to_string.c
gcc -S -O -DMACH_O64 ../common/copy_graph_to_string.c -o copy_graph_to_string.a
$(CC) $(CFLAGS) -S -O -DMACH_O64 ../common/copy_graph_to_string.c -o copy_graph_to_string.a
sed -f ../tools/intel64.sed copy_graph_to_string.a > copy_graph_to_string.s
as copy_graph_to_string.s -o copy_graph_to_string.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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
copy_string_to_graph.o: ../common/copy_string_to_graph.c
gcc -S -O -DMACH_O64 ../common/copy_string_to_graph.c -o copy_string_to_graph.a
$(CC) $(CFLAGS) -S -O -DMACH_O64 ../common/copy_string_to_graph.c -o copy_string_to_graph.a
sed -f ../tools/intel64.sed copy_string_to_graph.a > copy_string_to_graph.s
as copy_string_to_graph.s -o copy_string_to_graph.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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
CC=gcc
AS=as
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: ../common/copy_graph_to_string.c
gcc -O -S -fomit-frame-pointer ../common/copy_graph_to_string.c -o copy_graph_to_string.a
$(CC) $(CFLAGS) -O -S -fomit-frame-pointer ../common/copy_graph_to_string.c -o copy_graph_to_string.a
sed -f ../tools/intel32.sed copy_graph_to_string.a > copy_graph_to_string.s
as copy_graph_to_string.s -o copy_graph_to_string.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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
copy_string_to_graph.o: ../common/copy_string_to_graph.c
gcc -O -S -fomit-frame-pointer ../common/copy_string_to_graph.c -o copy_string_to_graph.a
$(CC) $(CFLAGS) -O -S -fomit-frame-pointer ../common/copy_string_to_graph.c -o copy_string_to_graph.a
sed -f ../tools/intel32.sed copy_string_to_graph.a > copy_string_to_graph.s
as copy_string_to_graph.s -o copy_string_to_graph.o
$(AS) $(ASFLAGS) 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
$(AS) $(ASFLAGS) 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment