Unit testing framework and devicetree framework refactoring (#50)
[lunaix-os.git] / lunaix-os / tests / shared / makefile
diff --git a/lunaix-os/tests/shared/makefile b/lunaix-os/tests/shared/makefile
new file mode 100644 (file)
index 0000000..0484be2
--- /dev/null
@@ -0,0 +1,20 @@
+include $(LUNAIX_ROOT)/makeinc/utils.mkinc
+
+lunaix-root := $(LUNAIX_ROOT)
+unit-test-root := $(lunaix-root)/tests/units
+test-root := $(lunaix-root)/tests
+test-shared-root := $(test-root)/shared
+
+CFLAGS += -idirafter $(lunaix-root)/includes   \
+                 -I $(test-root)/includes \
+                 -Wno-discarded-qualifiers \
+                 -Wno-scalar-storage-order \
+                 -g
+
+
+%.o: %.c
+       $(call status,CC,$(@F))
+       @$(CC) $(CFLAGS) -c $< -o $@
+
+
+obj-shared := $(test-shared-root)/framework.o