5c0246eff889977fb696753169f5d0fd9d0dd9e7
[fw/sdcc] / device / lib / pic16 / libdev / Makefile.in
1 ###########################################################
2 ### Makefile for the GNU PIC Library
3 ###
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT 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 AT 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 top_builddir = @top_builddir@
20 top_srcdir   = @top_srcdir@
21 srcdir       = @srcdir@
22 VPATH        = @srcdir@
23
24 SUBDIRS = 
25 MKLIB   = device_libs
26 C_FILES = $(notdir $(wildcard $(srcdir)/*.c))
27 TARGETS = $(OBJS:.o=.lib)
28
29 # allow invoking make without arguments (otherwise
30 # [...]/devicelibs would be the default target)
31 suball : all
32
33 .PHONY : $(top_builddir)$(builddir)/device_libs suball
34
35 $(top_builddir)$(builddir)/device_libs :
36         $(Q)+$(foreach dev,$(C_FILES:.c=),$(MAKE) $(top_builddir)$(builddir)/$(dev).lib LIB_O=$(top_builddir)$(builddir)/$(dev).o;)
37
38 include $(top_srcdir)/Makefile.subdir