--- /dev/null
+mod_name := test
+mod_dir := /home/jarusl
+mod_obj := bar.o
+mod_type := 1
+
+DEFS := -DMOD_NAME=$(mod_name) -DMOD_DIR=$(mod_dir) -DMOD_OBJ=$(mod_obj) -DMOD_TYPE=$(mod_type)
+
+
+
+
+module: FORCE
+ gcc $(DEFS) -c binary.S -o module.vo
+
+FORCE:
\ No newline at end of file
--- /dev/null
+#; -*- fundamental -*-
+
+/*
+ * This file is part of the Palacios Virtual Machine Monitor developed
+ * by the V3VEE Project with funding from the United States National
+ * Science Foundation and the Department of Energy.
+ *
+ * The V3VEE Project is a joint project between Northwestern University
+ * and the University of New Mexico. You can find out more at
+ * http://www.v3vee.org
+ *
+ * Copyright (c) 2010, Jack Lange <jarusl@cs.northwestern.edu>
+ * Copyright (c) 2010, The V3VEE Project <http://www.v3vee.org>
+ * All rights reserved.
+ *
+ * Author: Jack Lange <jarusl@cs.northwestern.edu>
+ *
+ * This is free software. You are permitted to use,
+ * redistribute, and modify it as specified in the file "V3VEE_LICENSE".
+ */
+
+.data
+
+#define TOSTR(str) #str
+#define MOD_PATH(dir,name) TOSTR(dir/name)
+#define MOD_NM(name) TOSTR(name)
+
+.globl mod_start
+mod_start:
+.incbin MOD_PATH(MOD_DIR, MOD_OBJ)
+mod_stop:
+
+mod_name:
+.ascii MOD_NM(MOD_NAME)
+
+
+.section "_v3_modules"
+.quad mod_name
+.quad mod_start
+.quad mod_stop
+.long MOD_TYPE
+