* .version: bumped version number to 2.4.8
[fw/sdcc] / device / lib / pic16 / libio / i2c / Makefile
1 #
2 # Makefile - Makefile to build pic16 C Library
3 #
4 # This file is part of the GNU PIC Library.
5 #
6 # January, 2004
7 # The GNU PIC Library is maintained by,
8 #       Vangelis Rokas <vrokas@otenet.gr>
9 #
10 # $Id$
11 #
12 #
13
14 include ../Makefile.rules
15
16 SRCS    =       i2cack \
17                 i2cclose \
18                 i2cdrdy \
19                 i2cidle \
20                 i2cnack \
21                 i2copen \
22                 i2creadc \
23                 i2creads \
24                 i2crestart \
25                 i2cstart \
26                 i2cstop \
27                 i2cwritec \
28                 i2cwrites
29
30
31 CFILES  = $(patsubst %,%.c,$(SRCS))
32 OFILES  = $(patsubst %.c,%.o,$(CFILES))
33
34
35 DEBUG=
36 #COMPILE_FLAGS   += --pomit-config-words --pomit-ivt --no-peep
37 COMPILE_FLAGS   += $(DEBUG)
38
39 CFILES  = $(patsubst %,%.c,$(SRCS))
40 OFILES  = $(patsubst %.c,%.o,$(CFILES))
41
42 %.o: %.c
43         $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
44
45 build-library: $(OFILES)
46