* src/pic/device.c (pic14_assignConfigWordValue): remember assignments to
[fw/sdcc] / device / lib / pic16 / libdev / 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 SUBDIRS = 
22 MKLIB   = device_libs
23 C_FILES = $(wildcard *.c)
24 TARGETS = $(OBJS:.o=.lib)
25
26 # allow invoking make without arguments (otherwise
27 # [...]/devicelibs would be the default target)
28 suball : all
29
30 .PHONY : $(topsrcdir)/$(builddir)/device_libs suball
31
32 $(topsrcdir)/$(builddir)/device_libs :
33         $(Q)+$(foreach dev,$(C_FILES:.c=),$(MAKE) $(topsrcdir)/$(builddir)/$(dev).lib LIB_O=$(topsrcdir)/$(builddir)/$(dev).o;)
34
35 include $(topsrcdir)/Makefile.subdir