X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_usr%2FMakefile;h=f586bb760df267a83aedb1e299b1f2e5f1403423;hb=eb09f3cd8221d75e00ea0ea8462f3f2e71ccc4e9;hp=64a2b7ee497becce51b240f8350fc97d20f70a9b;hpb=574d2595bd6502d1dc785ace50d46d052a2c8525;p=palacios.releases.git diff --git a/linux_usr/Makefile b/linux_usr/Makefile index 64a2b7e..f586bb7 100644 --- a/linux_usr/Makefile +++ b/linux_usr/Makefile @@ -49,7 +49,8 @@ EXPERIMENTAL_EXECS = v3_simulate \ v3_inject_ecc_scrubber_mce \ v3_top_inject \ v3_env_inject \ - v3_syscall + v3_syscall \ + v3_register_gm @@ -78,7 +79,7 @@ endif CFLAGS += -I../linux_module -CC = gcc +CC = gcc -g AR = ar all: $(BUILD_EXECS) $(BUILD_LIBS) $(COPIED_EXECS) @@ -90,6 +91,13 @@ libv3_ctrl.a : v3_ctrl.c v3_ctrl.h rm -rf v3_ctrl.o # +# JSON library for use in some tools +# +libjson.a : cJSON.c cJSON.h + $(CC) $(CFLAGS) -c cJSON.c + $(AR) ruv libjson.a cJSON.o + rm -rf cJSON.o +# # Most tools compile in a straightforward way # % :: %.c v3_ctrl.h libv3_ctrl.a @@ -132,6 +140,11 @@ v3_user_host_dev_example : v3_user_host_dev_example.c libv3_user_host_dev.a v3_os_debug : v3_os_debug.c libv3_user_host_dev.a $(CC) $(CFLAGS) $< -I../linux_module -L. -lv3_user_host_dev -o $@ +# +# Guarded module registration for GEARS +# +v3_register_gm: v3_register_gm.c libjson.a libv3_ctrl.a v3_ctrl.h + $(CC) $(CFLAGS) $< -L. -lm -lv3_ctrl -ljson -o $@ # # User keyed stream support includes a library and examples @@ -181,6 +194,7 @@ v3_x0vncserver : else \ echo "In order to use v3_vncclient/server you must have" ; \ echo "previously built or received palacios/linux_usr/x0vncserver" ; \ + echo "To learn more about this, look in palacios/linux_usr/vnc"; \ fi; #