1 |
dpavlin |
604 |
# |
2 |
|
|
#/* |
3 |
|
|
# The Malete project - the Z39.2/Z39.50 database framework of OpenIsis. |
4 |
|
|
# Version 0.9.x (patchlevel see file Version) |
5 |
|
|
# Copyright (C) 2001-2004 by Erik Grziwotz, erik@openisis.org |
6 |
|
|
# |
7 |
|
|
# This library is free software; you can redistribute it and/or |
8 |
|
|
# modify it under the terms of the GNU Lesser General Public |
9 |
|
|
# License as published by the Free Software Foundation; either |
10 |
|
|
# version 2.1 of the License, or (at your option) any later version. |
11 |
|
|
# |
12 |
|
|
# This library is distributed in the hope that it will be useful, |
13 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
15 |
|
|
# See the GNU Lesser General Public License for more details. |
16 |
|
|
# |
17 |
|
|
# You should have received a copy of the GNU Lesser General Public |
18 |
|
|
# License along with this library; if not, write to the Free Software |
19 |
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 |
|
|
# |
21 |
|
|
# see README for more information |
22 |
|
|
#EOH */ |
23 |
|
|
# |
24 |
|
|
# $Id: Makefile,v 1.1 2004/11/03 12:56:27 kripke Exp $ |
25 |
|
|
# the Makefile |
26 |
|
|
# |
27 |
|
|
|
28 |
|
|
ifndef WIN32 |
29 |
|
|
O=../bin |
30 |
|
|
EXE= |
31 |
|
|
else |
32 |
|
|
O=../win |
33 |
|
|
EXE=.exe |
34 |
|
|
include ../Mingw.mk |
35 |
|
|
endif |
36 |
|
|
|
37 |
|
|
|
38 |
|
|
# standard make defines |
39 |
|
|
ifdef DIET |
40 |
|
|
CC=/opt/diet/bin/diet -Os gcc |
41 |
|
|
else |
42 |
|
|
CC=gcc |
43 |
|
|
endif |
44 |
|
|
|
45 |
|
|
CFLAGS=-O2 |
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
# ############################# targets ################################## |
50 |
|
|
# |
51 |
|
|
# standard default target |
52 |
|
|
BINS=$O/bytestat$(EXE) $O/utf8stat$(EXE) |
53 |
|
|
all: $(BINS) |
54 |
|
|
.PHONY: all clean |
55 |
|
|
|
56 |
|
|
clean: |
57 |
|
|
rm -rf $(BINS) |
58 |
|
|
|
59 |
|
|
$O/%$(EXE): %.c |
60 |
|
|
$(CC) -o $@ -s $^ |