4 all: libmpi_hcall.a mpi_preload.so mpi.ko test_static
6 libmpi_hcall.a: mpi_hc.o
7 ar ruv libmpi_hcall.a mpi_hc.o
9 mpi_hc.o: mpi_hc.c mpi_hc.h hcall.h
10 gcc $(EXTRA) -static -fPIC -S mpi_hc.c -o mpi_hc.s
11 gcc $(EXTRA) -static -fPIC -c mpi_hc.c -o mpi_hc.o
13 mpi_preload.so: mpi_preload.c libmpi_hcall.a
14 gcc $(EXTRA) -Wall -O2 -fPIC -shared -nostdlib -I/usr/include mpi_preload.c -L. -lmpi_hcall -ldl -lc -o mpi_preload.so
16 test_static: test_static.c libmpi_hcall.a
17 gcc $(EXTRA) -static test_static.c -L. -lmpi_hcall -o test_static
20 EXTRA_CFLAGS += -I$(PWD)/../palacios/include
25 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
28 rm *.o *.so *.a test_static
29 make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean