Imported Upstream version 2.9.0
[debian/cc1111] / device / lib / pic16 / libdev / mkmk.sh
1 #!/bin/sh
2
3 #
4 # Script to generate Makefile.am,
5 # execute in device/lib/pic16/libdev/ with no arguments.
6 #
7 # Written by Raphael Neider <tecodev AT users sourceforge net>
8 #
9 # Released under the terms of the GPL v2.
10 #
11
12 cat <<HERE
13 ## Makefile.am -- Process this file with automake to produce Makefile.in
14 ## This file has been automatically generated using $0.
15
16 lib_LIBRARIES =
17
18 HERE
19
20 sed -e 's/\s*#.*$//' ../pics.all | grep -v '^\s*$' | sort | while read arch; do
21     cat <<HERE
22 lib_LIBRARIES += libdev18f${arch}.a
23 libdev18f${arch}_a_SOURCES = pic18f${arch}.c
24 libdev18f${arch}_a_CFLAGS = -p18f${arch} \$(AM_CFLAGS)
25
26 HERE
27 done
28
29 cat <<HERE
30 include \$(top_srcdir)/Makefile.common
31
32 HERE
33