aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files.mk6
-rw-r--r--makefile15
2 files changed, 21 insertions, 0 deletions
diff --git a/files.mk b/files.mk
new file mode 100644
index 0000000..dca418b
--- /dev/null
+++ b/files.mk
@@ -0,0 +1,6 @@
+
+IOE_SPI_SRC = $(IOE_PREFIX)/src/avr5/spi.c
+IOE_SPI_USI_SRC = $(IOE_PREFIX)/src/avr25/spi_usi.c
+
+IOE_SPI_OBJ = $(patsubst %.c,%.o,$(IOE_SPI_SRC))
+IOE_SPI_USI_OBJ = $(patsubst %.c,%.o,$(IOE_SPI_USI_SRC))
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..846c644
--- /dev/null
+++ b/makefile
@@ -0,0 +1,15 @@
+.PHONY: all help clean
+
+include files.mk
+
+all:
+ $(error This is not library, please include "files.mk" to your project makefile. For more informations refer to README.md)
+
+help:
+ @echo This makefile only implements these targets:
+ @echo help - prints this text
+ @echo clean - removing all object files generated from source files
+
+clean:
+ $(RM) $(IOE_SPI_OBJ)
+ $(RM) $(IOE_SPI_USI_OBJ)