objdictgen/Makefile.in
author etisserant
Wed, 10 May 2006 21:05:57 +0200
changeset 1 b3dc740b4b04
parent 0 4472ee7c6c3e
child 39 3e94ee906bc6
permissions -rw-r--r--
Commit some Fix from Francis on sdo.c and abjacces.c. Fix endianisation problems while accessing OD. Also fix SDO abord handling bug.
#! gmake

#
# Copyright (C) 2006 Laurent Bessard
# 
# This file is part of canfestival, a library implementing the canopen
# stack
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
# 

PREFIX = SUB_PREFIX
INSTALL_JAXE = SUB_OPT_JAXE

all: jaxe gnosis

jaxe: jaxe-unix-2.2.tar.gz

gnosis: Gnosis_Utils-1.2.1.tar.gz

Gnosis_Utils-1.2.1.tar.gz:
	wget http://gnosis.cx/download/Gnosis_Utils-1.2.1.tar.gz
	tar xfz Gnosis_Utils-1.2.1.tar.gz
	mv Gnosis_Utils-1.2.1/gnosis .
	rm -rf Gnosis_Utils-1.2.1

jaxe-unix-2.2.tar.gz:
ifeq ($(INSTALL_JAXE),jaxe)
	wget http://dl.sourceforge.net/sourceforge/jaxe/jaxe-unix-2.2.tar.gz
	tar xfz jaxe-unix-2.2.tar.gz
endif

install: jaxe
	cp -r ../objdictgen $(PREFIX)/
ifeq ($(INSTALL_JAXE),jaxe)
	rm -f $(PREFIX)/objdictgen/jaxe-unix-2.2.tar.gz
endif
	rm -f $(PREFIX)/objdictgen/Gnosis_Utils-current.tar.gz
	chmod -R a+r $(PREFIX)/objdictgen
	chmod 755 $(PREFIX)/objdictgen/objdictedit.sh
	echo -e "#!/bin/sh\n pushd $(PREFIX)/objdictgen/\n ./objdictedit.sh\n popd\n" > $(PREFIX)/bin/objdictedit
	chmod 755 $(PREFIX)/bin/objdictedit
	ln -s $(PREFIX)/objdictgen/objdictgen.py $(PREFIX)/bin/objdictgen
	chmod 755 $(PREFIX)/objdictgen/objdictgen.py

uninstall:
	-rm -rf $(PREFIX)/objdictgen
	-rm -f $(PREFIX)/bin/objdictgen
	-rm -f $(PREFIX)/bin/objdictgen.py

clean:

mrproper: clean
ifeq ($(INSTALL_JAXE),jaxe)
	-rm -f jaxe-unix-2.2.tar.gz
	-rm -rf jaxe
endif
	-rm -f Gnosis_Utils-1.2.1.tar.gz
	-rm -rf gnosis