1 ###########################################################
2 ### Makefile for the SDCC/PIC14 Library
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>
6 ### The library is currently maintained by
7 ### Raphael Neider <rneider AT web.de>
9 ### This file may be distributed under the terms of the the
10 ### GNU General Public License (GPL). See GPL for details.
15 top_builddir = @top_builddir@
16 top_srcdir = @top_srcdir@
21 include $(top_builddir)/Makefile.common
23 ifeq (:,$(findstring :,$(LD) $(AS) $(LIB)))
28 @echo "gputils not found -- PIC14 library not built!"
32 SUBDIRS = libsdcc libdev libm
37 C_SRC = $(notdir $(wildcard $(srcdir)/*.c))
38 S_SRC = $(notdir $(wildcard $(srcdir)/*.S))
39 OBJS = $(C_SRC:.c=.o) $(S_SRC:.S=.o)
41 .PHONY : all clean clean-intermediate install
48 $(Q)-$(RMDIR) "$(top_builddir)/$(builddir)"
51 $(Q)-$(RM) config.cache config.log config.status Makefile Makefile.common
54 clean-intermediate : recurse
56 include $(top_srcdir)/Makefile.rules