| 1 |
# Copyright (C) CNRS, INRIA, Université Bordeaux 1, Télécom SudParis |
| 2 |
# See COPYING in top-level directory. |
| 3 |
|
| 4 |
LIBRARIES=libinstrument.a libinstrument.so |
| 5 |
all: $(LIBRARIES) |
| 6 |
|
| 7 |
libinstrument.a: instrument.c |
| 8 |
gcc -c instrument.c -o instrument_static.o |
| 9 |
ar rcv libinstrument.a instrument_static.o |
| 10 |
|
| 11 |
libinstrument.so: instrument.c |
| 12 |
gcc -c instrument.c -o instrument_dynamic.o -fPIC |
| 13 |
gcc instrument_dynamic.o -shared -o libinstrument.so |
| 14 |
ar rcv libinstrument.a instrument_static.o |
| 15 |
|
| 16 |
run: |
| 17 |
|
| 18 |
clean: |
| 19 |
rm -f *.o $(LIBRARIES) |