# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program 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 General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. CC = gcc STATIC = #STATIC = -static STRIP = strip VERSION = 2.0.1 all: ldvd-ls ldvd-ls: ldvd-ls.o $(CC) -o $@ $(STATIC) ldvd-ls.o -ldvdread -ldl $(STRIP) $@ install: mkdir -p ${DESTDIR}/etc/ cp -v ldvd.conf ${DESTDIR}/etc/ mkdir -p ${DESTDIR}/usr/bin cp -v ldvd ldvd-ls ${DESTDIR}/usr/bin/ mkdir -p ${DESTDIR}/usr/share/ldvd-${VERSION} cp -v de.lang en.lang ${DESTDIR}/usr/share/ldvd-${VERSION}/ clean: rm -f ldvd-ls ldvd-ls.o uninstall: rm -f ${DESTDIR}/usr/bin/ldvd ${DESTDIR}/usr/bin/ldvd-ls rm -rf ${DESTDIR}/usr/share/ldvd-${VERSION} rm -f ${DESTDIR}/etc/ldvd.conf