* src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
[fw/sdcc] / device / lib / pic16 / Makefile
1 ###########################################################
2 ### Makefile for the GNU PIC Library
3 ###
4 ### Copyright (C) 2005 by Raphael Neider <rneider@web.de>
5 ###
6 ### The GNU PIC Library was originally designed and
7 ### implemented by
8 ###     Vangelis Rokas <vrokas@otenet.gr>
9 ###
10 ### It is currently maintained by
11 ###     Raphael Neider <rneider@web.de>
12 ###
13 ### This file may be distributed under the terms of the the
14 ### GNU General Public License (GPL). See COPYING for details.
15 ###
16 ### $Id$
17 ###
18
19 topsrcdir = .
20
21 include $(topsrcdir)/Makefile.common
22
23 ifeq (:,$(findstring :,$(LD) $(AS) $(LIB)))
24
25 .PHONY : all
26
27 all % : 
28         @echo "gputils not found -- PIC16 library not built!"
29
30 else
31
32 SUBDIRS    = debug libc libdev libio libm libsdcc startup
33 builddir   = build
34 installdir = bin
35 export installdir
36
37 C_SRC = $(wildcard *.c)
38 S_SRC = $(wildcard *.S)
39 OBJS = $(C_SRC:.c=.o) $(S_SRC:.S=.o)
40
41 .PHONY : all clean clean-intermediate install
42
43 all : install
44
45 install : recurse
46
47 clean : recurse
48         $(Q)-$(RMDIR) "$(topsrcdir)/$(builddir)";
49
50 clean-intermediate : recurse
51
52 include $(topsrcdir)/Makefile.rules
53
54 endif