aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-03-14 11:35:15 +0100
committerKarel Kočí <cynerd@email.cz>2015-03-14 11:35:15 +0100
commitd7a7c97220ab9660722a3602cc74549b0c82d3d0 (patch)
treed86a2329c3bf0f4555b13d7e98674bac5180b7a0
parent4b3d15dfdd2692a6230fb8f7865d9ac090c1ad03 (diff)
downloadavr-ioe-d7a7c97220ab9660722a3602cc74549b0c82d3d0.tar.gz
avr-ioe-d7a7c97220ab9660722a3602cc74549b0c82d3d0.tar.bz2
avr-ioe-d7a7c97220ab9660722a3602cc74549b0c82d3d0.zip
Add makefile and files.mk
Added dummy makefile. Only for cleaning. files.mk is intended for project makefile.
-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)