1 ###########################################################
2 ### Makefile for the GNU PIC Library
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>
6 ### The GNU PIC Library was originally designed and
8 ### Vangelis Rokas <vrokas@otenet.gr>
10 ### It is currently maintained by
11 ### Raphael Neider <rneider AT web.de>
13 ### This file may be distributed under the terms of the the
14 ### GNU General Public License (GPL). See COPYING for details.
19 top_builddir = @top_builddir@
20 top_srcdir = @top_srcdir@
26 C_FILES = $(notdir $(wildcard $(srcdir)/*.c))
27 TARGETS = $(OBJS:.o=.lib)
29 # allow invoking make without arguments (otherwise
30 # [...]/devicelibs would be the default target)
33 .PHONY : $(top_builddir)/$(builddir)/device_libs suball
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;)
38 include $(top_srcdir)/Makefile.subdir