/[webpac]/openisis/0.9.9e/core/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /openisis/0.9.9e/core/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 604 - (show annotations)
Mon Dec 27 21:49:01 2004 UTC (19 years, 3 months ago) by dpavlin
File size: 2262 byte(s)
import of new openisis release, 0.9.9e

1 #
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-2003 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.8 2004/03/29 09:34:56 kripke Exp $
25 # the Makefile
26 #
27
28 ifndef WIN32
29 O=../bin
30 EXE=
31 RUN=
32 else
33 O=../win
34 EXE=.exe
35 RUN=wine --
36 CC=gcc
37 include ../Mingw.mk
38 endif
39
40 TEST=$(O)/test$(EXE)
41
42 # standard make defines
43 ifdef CC # suggest diet -Os gcc
44 CC=gcc
45 endif
46
47 # DBG=
48 ifndef NDEBUG
49 # hmmm ... at least with -pg we saw bugs of regparm plain delivering false data
50 # DBG=-g -pg
51 DBG=-g
52 else
53 DBG=-DNDEBUG
54 endif
55 # ARCH=-march=i586
56
57
58 # compile
59 CPPFLAGS=-I..
60 # note that -O is necessary for -Wuninitialized warnings
61 # -fstack-check ???
62 CFLAGS=$(DBG) -O2 -Wall -W -Wshadow -pedantic -Wno-long-long
63
64
65
66 # ############################# link ##################################
67 SYSLIBS=
68 ifeq (solaris,$(OSTYPE))
69 # rt for nanosleep
70 SYSLIBS=-lrt
71 endif
72
73
74 # ############################# targets ##################################
75 #
76 # standard default target
77 all: core
78 .PHONY: all core clean
79
80 include ../core/core.mk
81
82
83
84 clean:
85 rm -rf ../bin ../win
86 [ ! -f core ] || rm core
87
88 $(O)/test$(EXE): $(O)/test.o $(CORE:%=$(O)/%.o)
89 $(CC) $(DBG) $(SYSLIBS) -o $@ $^
90
91
92 # ########################## demos and tests ###############################
93 #
94 test: $(TEST)
95 $(RUN) $(TEST)
96
97
98
99 # ############################# rules ##################################
100 #
101 # $@ target $^ all prerequisites $? newer $< first $* stem
102 #

  ViewVC Help
Powered by ViewVC 1.1.26