Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Updated MPI accelerator build for new directory structure
[palacios.git] / gears / services / mpi / Makefile
1 EXTRA = -m32
2
3
4 all: libmpi_hcall.a mpi_preload.so mpi.ko test_static
5
6 libmpi_hcall.a: mpi_hc.o
7         ar ruv libmpi_hcall.a mpi_hc.o
8
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
12
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
15
16 test_static: test_static.c libmpi_hcall.a
17         gcc   $(EXTRA) -static test_static.c -L. -lmpi_hcall -o test_static
18
19
20 EXTRA_CFLAGS += -I$(PWD)/../../../palacios/include
21
22 obj-m += mpi.o 
23
24 mpi.ko: mpi.c 
25         make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
26
27 clean: 
28         rm *.o *.so *.a test_static 
29         make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
30