* device/lib/Makefile.in: fixed test for pic16 install dir
[fw/sdcc] / device / lib / pic16 / libio / adc / 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    =       adcbusy \
17                 adcclose \
18                 adcconv \
19                 adcopen \
20                 adcread \
21                 adcsetch
22
23
24 CFILES  = $(patsubst %,%.c,$(SRCS))
25 OFILES  = $(patsubst %.c,%.o,$(CFILES))
26
27
28 DEBUG=
29 #COMPILE_FLAGS   += --pomit-config-words --pomit-ivt --denable-peeps --optimize-goto --obanksel=2
30 COMPILE_FLAGS   += $(DEBUG)
31
32 CFILES  = $(patsubst %,%.c,$(SRCS))
33 OFILES  = $(patsubst %.c,%.o,$(CFILES))
34
35 %.o: %.c
36         $(CC) $(CFLAGS) $(COMPILE_FLAGS) -c $<
37
38 build-library: $(OFILES)
39