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.


Extensions to HVM ROS userspace library corresponding to HVM enhancements
[palacios.git] / guest / linux / hvm-ros / Makefile
index f818a39..6f9aea7 100644 (file)
@@ -1,17 +1,30 @@
+CC:=gcc
+AR:=ar
+ARFLAGS:=ruv
+
+CFLAGS:= -Wall -static
+
+ifeq ($(DEBUG),1)
+       CFLAGS += -DDEBUG_ENABLE=1
+endif
+
+ifeq ($(INFO),1)
+       CFLAGS += -DINFO_ENABLE=1
+endif
+
 all: libv3_hvm_ros_user.a test
 
 libv3_hvm_ros_user.a: v3_hvm_ros_user.o v3_hvm_ros_user_low_level.o
-       ar ruv libv3_hvm_ros_user.a v3_hvm_ros_user.o v3_hvm_ros_user_low_level.o
+       $(AR) $(ARFLAGS) libv3_hvm_ros_user.a v3_hvm_ros_user.o v3_hvm_ros_user_low_level.o
 
 v3_hvm_ros_user.o: v3_hvm_ros_user.c v3_hvm_ros_user.h 
-       gcc -Wall -c v3_hvm_ros_user.c
+       $(CC) $(CFLAGS) -c v3_hvm_ros_user.c
 
 v3_hvm_ros_user_low_level.o: v3_hvm_ros_user_low_level.S
-       gcc -Wall -c v3_hvm_ros_user_low_level.S
-
+       $(CC) $(CFLAGS) -c v3_hvm_ros_user_low_level.S
 
 test: test.c libv3_hvm_ros_user.a v3_hvm_ros_user.h
-       gcc -Wall -static test.c -L. -lv3_hvm_ros_user -o test
+       $(CC) $(CFLAGS) -static test.c -L. -lv3_hvm_ros_user -o test
 
 clean:
        rm -f libv3_hvm_ros_user.a v3_hvm_ros_user.o v3_hvm_ros_user_low_level.o test