6659a8b382d1eda74de148ada67af16e04ca9142
[fw/sdcc] / device / lib / pic / Makefile.in
1 ###########################################################
2 ### Makefile for the SDCC/PIC14 Library
3 ###
4 ### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>
5 ###
6 ### The library is currently maintained by
7 ###     Raphael Neider <rneider AT web.de>
8 ###
9 ### This file may be distributed under the terms of the the
10 ### GNU General Public License (GPL). See GPL for details.
11 ###
12 ### $Id$
13 ###
14
15 top_builddir = @top_builddir@
16 top_srcdir   = @top_srcdir@
17
18 VPATH  = @srcdir@
19 srcdir = @srcdir@
20
21 include $(top_builddir)Makefile.common
22
23 ifeq (:,$(findstring :,$(LD) $(AS) $(LIB)))
24
25 .PHONY : all
26
27 all % : 
28         @echo "gputils not found -- PIC14 library not built!"
29
30 else
31
32 SUBDIRS    = libsdcc libdev libm
33 builddir   = build
34 installdir = bin
35 export installdir
36
37 C_SRC = $(notdir $(wildcard $(srcdir)/*.c))
38 S_SRC = $(notdir $(wildcard $(srcdir)/*.S))
39 OBJS = $(C_SRC:.c=.o) $(S_SRC:.S=.o)
40
41 .PHONY : all clean clean-intermediate install
42
43 all : install
44
45 install : recurse
46
47 clean : recurse
48         $(Q)-$(RMDIR) "$(top_builddir)$(builddir)"
49
50 distclean: clean
51         $(Q)-$(RM) config.cache config.log config.status Makefile Makefile.common
52         $(Q)-$(RMDIR) bin
53
54 clean-intermediate : recurse
55
56 include $(top_srcdir)/Makefile.rules
57
58 endif