2 # Copyright (C) 2007 David Härdeman <david@hardeman.nu>
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; version 2 of the License.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 CFLAGS
+= -g
-Wall
-pedantic
-std
=c99
-D_FILE_OFFSET_BITS
=64 -O2
25 INSTALL_PROGRAM
= ${INSTALL}
26 INSTALL_DATA
= ${INSTALL} -m
644
27 COMPILE
= $(CC
) $(INCLUDES
) $(CFLAGS
) $(CPPFLAGS
)
28 LINK
= $(CC
) $(CFLAGS
) $(LDFLAGS
)
29 OBJECTS
= utils.o metastore.o metaentry.o
30 HEADERS
= utils.h metastore.h metaentry.h
34 usrbindir
= ${prefix}/bin
35 mandir = ${prefix}/share
/man
46 $(COMPILE
) -o
$@
-c
$<
54 $(INSTALL_DATA
) -D metastore
.1 $(DESTDIR
)$(mandir)/man1
/metastore
.1
55 $(INSTALL_PROGRAM
) -D metastore
$(DESTDIR
)$(usrbindir
)/metastore
59 - rm -f
$(DESTDIR
)$(mandir)/man1
/metastore
.1
60 - rm -f
$(DESTDIR
)$(usrbindir
)/metastore
67 .PHONY
: install uninstall clean all