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 .PHONY
: all clean clean-intermediate
install
26 ifeq (:,$(findstring :,$(LD
) $(AS
) $(LIB
)))
28 @echo
"gputils not found -- PIC14 library not built!"
40 C_SRC
= $(sort $(notdir $(wildcard $(srcdir)/*.c
)))
41 S_SRC
= $(sort $(notdir $(wildcard $(srcdir)/*.S
)))
42 OBJS
= $(C_SRC
:.c
=.o
) $(S_SRC
:.S
=.o
)
45 $(Q
)-$(RMDIR
) "$(top_builddir)/$(builddir)"
46 -if
[ -d bin
]; then
$(RMDIR
) bin
; fi
49 $(Q
)-$(RM
) a.cod a.hex a.lst pics.supported
50 $(Q
)-$(RM
) -rf .
/.checkdevices
52 distclean: clean distclean-local
53 $(Q
)-$(RM
) config.cache config.log config.status Makefile Makefile.common
54 -if
[ -d bin
]; then
$(RMDIR
) bin
; fi
56 clean-intermediate
: recurse
58 include $(top_srcdir
)/Makefile.rules