2
2
# STFL - The Structured Terminal Forms Language/Library
3
# Copyright (C) 2006 Clifford Wolf <clifford@clifford.at>
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
3
# Copyright (C) 2006, 2007 Clifford Wolf <clifford@clifford.at>
5
# This library is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU Lesser General Public
7
# License as published by the Free Software Foundation; either
8
# version 3 of the License, or (at your option) any later version.
10
# This library is distributed in the hope that it will be useful,
11
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
# Lesser General Public License for more details.
15
# You should have received a copy of the GNU Lesser General Public
16
# License along with this library; if not, write to the Free Software
17
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27
28
spl/mod_stfl.so: libstfl.a stfl.h spl/mod_stfl.c
28
29
gcc -shared -fPIC $(CFLAGS) $(LDFLAGS) spl/mod_stfl.c \
29
-L. -lstfl $(LDLIBS) -o spl/mod_stfl.so
30
-L. libstfl.a $(LDLIBS) -o spl/mod_stfl.so
31
32
install_spl: spl/mod_stfl.so
32
mkdir -p $(prefix)/lib/spl_modules
33
install spl/mod_stfl.so $(prefix)/lib/spl_modules/
33
mkdir -p $(DESTDIR)$(prefix)/lib/spl_modules
34
install spl/mod_stfl.so $(DESTDIR)$(prefix)/lib/spl_modules/