/[webpac]/openisis/0.9.9e/pw/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

Annotation of /openisis/0.9.9e/pw/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


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

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-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.4 2004/03/29 09:35:20 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     include ../Mingw.mk
37     endif
38    
39     TEST=$(O)/test$(EXE)
40    
41     # standard make defines
42     ifdef DIET
43     CC=/opt/diet/bin/diet -Os gcc
44     else
45     CC=gcc
46     endif
47    
48     # DBG=
49     ifndef NDEBUG
50     DBG=-g
51     else
52     DBG=-DNDEBUG
53     endif
54     # ARCH=-march=i586
55    
56    
57     # compile
58     CPPFLAGS=-I..
59     # note that -O is necessary for -Wuninitialized warnings
60     # -fstack-check ???
61     CFLAGS=$(DBG) -O2 -Wall -W -Wshadow -pedantic -Wno-long-long -Winline
62    
63    
64    
65     # ############################# link ##################################
66     SYSLIBS=
67     ifeq (solaris,$(OSTYPE))
68     # rt for nanosleep
69     SYSLIBS=-lrt -lsocket -lnsl
70     endif
71    
72    
73     # ############################# targets ##################################
74     #
75     # standard default target
76     all: pw
77     pw: core
78     .PHONY: all core clean pw
79    
80     include ../pw/pw.mk
81     include ../core/core.mk
82    
83     clean:
84     rm -rf ../bin ../win
85     [ ! -f core ] || rm core
86    
87     $(O)/test$(EXE): $(O)/test.o $(CORE:%=$(O)/%.o) $(PW:%=$(O)/%.o)
88     $(CC) $(DBG) $(SYSLIBS) -o $@ $^
89    
90    
91     # ########################## demos and tests ###############################
92     #
93     test: $(TEST)
94     -rm ../test/test.mr?
95     -cp -p ../test/cds.mrd ../test/test.mrd
96     $(RUN) $(TEST) srv -vd test -f../test/ -wa cds -f../test/
97     # $(TEST) p -vd
98     # /usr/bin/time -v $(TEST) -vi -h /tmp/dict/words
99    
100     # ############################# rules ##################################
101     #
102     # $@ target $^ all prerequisites $? newer $< first $* stem
103     #

  ViewVC Help
Powered by ViewVC 1.1.26