summaryrefslogtreecommitdiff
path: root/device/non-free/lib/pic14/Makefile
blob: cbf756fa08615239e2d1da12da92cf07d9edcc72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
###########################################################
### Makefile for the SDCC/PIC14 Library
###
### Copyright (C) 2005 by Raphael Neider <rneider AT web.de>
###
### The library is currently maintained by
###	Raphael Neider <rneider AT web.de>
###
### This file may be distributed under the terms of the the
### GNU General Public License (GPL). See GPL for details.
###
### $Id: Makefile.in 9919 2017-05-30 22:39:48Z spth $
###

top_builddir = .
top_srcdir   = .


srcdir = .

include $(top_builddir)/Makefile.common

.PHONY: all clean clean-intermediate install


ifeq (:,$(findstring :,$(LD) $(AS) $(LIB)))
all:
	@echo "gputils not found -- PIC14 library not built!"
else
all : install
install : recurse
endif


SUBDIRS	   = libdev
builddir   = build
installdir = bin
export installdir

C_SRC = $(sort $(notdir $(wildcard $(srcdir)/*.c)))
S_SRC = $(sort $(notdir $(wildcard $(srcdir)/*.S)))
OBJS = $(C_SRC:.c=.o) $(S_SRC:.S=.o)

clean: recurse
	$(Q)-$(RMDIR) "$(top_builddir)/$(builddir)"
	-if [ -d bin ]; then $(RMDIR) bin; fi

distclean-local:
	$(Q)-$(RM) a.cod a.hex a.lst pics.supported
	$(Q)-$(RM) -rf ./.checkdevices

distclean: clean distclean-local
	$(Q)-$(RM) config.cache config.log config.status Makefile Makefile.common
	-if [ -d bin ]; then $(RMDIR) bin; fi

clean-intermediate: recurse

include $(top_srcdir)/Makefile.rules