1f08c3bdfSopenharmony_ci#
2f08c3bdfSopenharmony_ci#    pan Makefile.
3f08c3bdfSopenharmony_ci#
4f08c3bdfSopenharmony_ci#    Copyright (C) 2009, Cisco Systems Inc.
5f08c3bdfSopenharmony_ci#
6f08c3bdfSopenharmony_ci#    This program is free software; you can redistribute it and/or modify
7f08c3bdfSopenharmony_ci#    it under the terms of the GNU General Public License as published by
8f08c3bdfSopenharmony_ci#    the Free Software Foundation; either version 2 of the License, or
9f08c3bdfSopenharmony_ci#    (at your option) any later version.
10f08c3bdfSopenharmony_ci#
11f08c3bdfSopenharmony_ci#    This program is distributed in the hope that it will be useful,
12f08c3bdfSopenharmony_ci#    but WITHOUT ANY WARRANTY; without even the implied warranty of
13f08c3bdfSopenharmony_ci#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14f08c3bdfSopenharmony_ci#    GNU General Public License for more details.
15f08c3bdfSopenharmony_ci#
16f08c3bdfSopenharmony_ci#    You should have received a copy of the GNU General Public License along
17f08c3bdfSopenharmony_ci#    with this program; if not, write to the Free Software Foundation, Inc.,
18f08c3bdfSopenharmony_ci#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19f08c3bdfSopenharmony_ci#
20f08c3bdfSopenharmony_ci# Ngie Cooper, July 2009
21f08c3bdfSopenharmony_ci#
22f08c3bdfSopenharmony_ci
23f08c3bdfSopenharmony_citop_srcdir		?= ..
24f08c3bdfSopenharmony_ci
25f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/env_pre.mk
26f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/functions.mk
27f08c3bdfSopenharmony_ci
28f08c3bdfSopenharmony_ci# XXX (garrcoop): some versions of flex/bison generate crap code that doesn't
29f08c3bdfSopenharmony_ci# check the return code from fwrite(3).
30f08c3bdfSopenharmony_ciCPPFLAGS		+= -Wno-error
31f08c3bdfSopenharmony_ci
32f08c3bdfSopenharmony_ciCPPFLAGS		+= -I$(abs_srcdir)
33f08c3bdfSopenharmony_ci
34f08c3bdfSopenharmony_ciLDLIBS			+= -lm
35f08c3bdfSopenharmony_ci
36f08c3bdfSopenharmony_ciLFLAGS			+= -l
37f08c3bdfSopenharmony_ci
38f08c3bdfSopenharmony_ciINSTALL_DIR		:= bin
39f08c3bdfSopenharmony_ci
40f08c3bdfSopenharmony_ciMAKE_TARGETS		:= ltp-bump ltp-pan
41f08c3bdfSopenharmony_ci
42f08c3bdfSopenharmony_ciltp-bump: ltp-bump.o zoolib.o
43f08c3bdfSopenharmony_ci
44f08c3bdfSopenharmony_ciltp-pan: ltp-pan.o zoolib.o splitstr.o
45f08c3bdfSopenharmony_ci
46f08c3bdfSopenharmony_ci# flex does some whacky junk when it generates files on the fly, so let's make
47f08c3bdfSopenharmony_ci# sure gcc doesn't get lost...
48f08c3bdfSopenharmony_civpath %.c $(abs_srcdir):$(abs_builddir)))
49f08c3bdfSopenharmony_civpath %.l $(abs_srcdir)
50f08c3bdfSopenharmony_ci
51f08c3bdfSopenharmony_ciinclude $(top_srcdir)/include/mk/generic_leaf_target.mk
52