| 1 |
# Copyright (C) CNRS, INRIA, Université Bordeaux 1, Télécom SudParis |
| 2 |
# See COPYING in top-level directory. |
| 3 |
|
| 4 |
CC = gcc |
| 5 |
CFLAGS = -O0 -marm -march=armv7-a -g |
| 6 |
BIN = libtest_pptrace.static.a libtest_pptrace.shared.so main.shared main.static |
| 7 |
|
| 8 |
all: $(BIN) |
| 9 |
|
| 10 |
main.shared: main.c test_pptrace.h |
| 11 |
$(CC) $(CFLAGS) -o main.shared main.c -L. -ltest_pptrace.shared |
| 12 |
|
| 13 |
main.static: main.c test_pptrace.h |
| 14 |
$(CC) $(CFLAGS) -o main.static main.c -static -L. -ltest_pptrace.static |
| 15 |
|
| 16 |
libtest_pptrace.shared.so: test_pptrace.shared.o |
| 17 |
$(CC) $(CFLAGS) --shared -o libtest_pptrace.shared.so test_pptrace.shared.o -ldl |
| 18 |
|
| 19 |
libtest_pptrace.static.a: test_pptrace.static.o |
| 20 |
ar rcv libtest_pptrace.static.a test_pptrace.static.o |
| 21 |
|
| 22 |
test_pptrace.shared.o: test_pptrace.c test_pptrace.h |
| 23 |
$(CC) $(CFLAGS) -o test_pptrace.shared.o -c test_pptrace.c -fPIC |
| 24 |
|
| 25 |
test_pptrace.static.o: test_pptrace.c test_pptrace.h |
| 26 |
$(CC) $(CFLAGS) -o test_pptrace.static.o -c test_pptrace.c |
| 27 |
|
| 28 |
clean: |
| 29 |
rm -f $(BIN) *.o *.so |
| 30 |
|