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.


Device File Virtualization Proof of Concept (Kernel+Preload)
[palacios.git] / gears / services / devfile / Makefile
1 .PHONY: clear   
2 EXTRA = -m64
3
4 #TEST_CASES := $(wildcard test*.c)
5
6 #TEST_TARGETS := $(wildcard (test*).c)
7
8 all: devfile_hc.o test_preload devfile_host.ko libdevfile_hcall.a devfile_preload.so
9
10 libdevfile_hcall.a: devfile_hc.o
11         ar ruv libdevfile_hcall.a devfile_hc.o
12
13 devfile_hc.o: devfile_hc.c devfile_hc.h hcall.h
14         gcc  $(EXTRA)  -g -static -fPIC -S devfile_hc.c -o devfile_hc.s
15         gcc  $(EXTRA)  -g -static -fPIC -c devfile_hc.c -o devfile_hc.o
16
17 devfile_preload.so: devfile_preload.c libdevfile_hcall.a
18         gcc   $(EXTRA) -Wall -O2 -fPIC -shared -I/usr/include devfile_preload.c -L. -ldevfile_hcall -ldl -lc -o devfile_preload.so
19
20 EXTRA_CFLAGS += -I$(PWD)/../../../palacios/include
21
22 obj-m += devfile_host.o 
23
24 devfile_host.ko: devfile_host.c 
25         make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
26
27 test_preload: test_preload.c
28         gcc $(EXTRA) -Wall -g test_preload.c -o test_preload
29
30 clean: 
31         rm *.o *.so *.a *.ko test_preload *.out *.symvers *.mod.c *.s *.order 
32         make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
33
34 clear:
35         rm test_ld_lib *.o *.mod.o *.out *.symvers *.mod.c *.s *.order