1 ###########################################################
2 ### Makefile for the GNU PIC Library
4 ### Copyright (C) 2005 by Raphael Neider <rneider@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@web.de>
13 ### This file may be distributed under the terms of the the
14 ### GNU General Public License (GPL). See COPYING for details.
23 C_FILES = $(wildcard *.c)
24 TARGETS = $(OBJS:.o=.lib)
26 # allow invoking make without arguments (otherwise
27 # [...]/devicelibs would be the default target)
30 .PHONY : $(topsrcdir)/$(builddir)/device_libs suball
32 $(topsrcdir)/$(builddir)/device_libs :
33 $(Q)+$(foreach dev,$(C_FILES:.c=),$(MAKE) $(topsrcdir)/$(builddir)/$(dev).lib LIB_O=$(topsrcdir)/$(builddir)/$(dev).o;)
35 include $(topsrcdir)/Makefile.subdir