]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/platforms/msp430/pybsl/Makefile.am
Merge devel code into the trunk.
[tinyos-2.x.git] / tools / platforms / msp430 / pybsl / Makefile.am
diff --git a/tools/platforms/msp430/pybsl/Makefile.am b/tools/platforms/msp430/pybsl/Makefile.am
new file mode 100644 (file)
index 0000000..dc3f4e9
--- /dev/null
@@ -0,0 +1,29 @@
+AUTOMAKE_OPTIONS = foreign
+
+sharedocdir=$(datadir)/doc/tinyos-tools-@PACKAGE_VERSION@
+
+sharedoc_DATA = tos-bsl.txt tos-bsl-license.txt
+
+dist_man_MANS = tos-bsl.1
+
+if CYGWIN
+# Cygwin support using native windows binary
+# (this code is not compatible with cygwin's python)
+
+install: tos-bsl-win.tar.gz
+       tar xzvf tos-bsl-win.tar.gz -C $(bindir) 
+
+else
+# Linux support
+SUBDIRS = serial
+
+tinyoslibdir=$(libdir)/tinyos
+
+bin_SCRIPTS = tos-bsl
+
+tinyoslib_DATA = elf.py
+
+tos-bsl: tos-bsl.in
+       sed -e 's,@tinyoslibdir\@,$(tinyoslibdir),g' tos-bsl.in >$@
+
+endif