* .version: bumped version number to 2.4.8
[fw/sdcc] / device / lib / pic16 / libio / i2c / Makefile
diff --git a/device/lib/pic16/libio/i2c/Makefile b/device/lib/pic16/libio/i2c/Makefile
new file mode 100644 (file)
index 0000000..7ad6f94
--- /dev/null
@@ -0,0 +1,46 @@
+#
+# Makefile - Makefile to build pic16 C Library
+#
+# This file is part of the GNU PIC Library.
+#
+# January, 2004
+# The GNU PIC Library is maintained by,
+#      Vangelis Rokas <vrokas@otenet.gr>
+#
+# $Id$
+#
+#
+
+include ../Makefile.rules
+
+SRCS   =       i2cack \
+               i2cclose \
+               i2cdrdy \
+               i2cidle \
+               i2cnack \
+               i2copen \
+               i2creadc \
+               i2creads \
+               i2crestart \
+               i2cstart \
+               i2cstop \
+               i2cwritec \
+               i2cwrites
+
+
+CFILES = $(patsubst %,%.c,$(SRCS))
+OFILES = $(patsubst %.c,%.o,$(CFILES))
+
+
+DEBUG=
+#COMPILE_FLAGS   += --pomit-config-words --pomit-ivt --no-peep
+COMPILE_FLAGS  += $(DEBUG)
+
+CFILES = $(patsubst %,%.c,$(SRCS))
+OFILES = $(patsubst %.c,%.o,$(CFILES))
+
+%.o: %.c
+       $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
+
+build-library: $(OFILES)
+