aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c83210b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+ifndef DPP_ROOT
+$(error DPP_ROOT is undefined)
+endif
+
+include $(DPP_ROOT)/Makefile.inc
+
+DRIVER_NAME = driver
+DRIVER_OBJECTS = $(DRIVER_NAME).o
+DRIVER_TARGET = $(DRIVER_NAME).sys
+
+all: $(DRIVER_TARGET)
+
+clean:
+ rm -f $(DRIVER_OBJECTS) $(DRIVER_TARGET)
+
+%.o: %.cpp
+ $(call BUILD_CPP_OBJECT,$<,$@)
+
+$(DRIVER_TARGET): $(DRIVER_OBJECTS)
+ $(call LINK_CPP_KERNEL_TARGET,$(DRIVER_OBJECTS),$@)