1 | # |
|
|
2 | # Makefile for crossfire 0.95.0 and beyond |
|
|
3 | # |
|
|
4 | # This file will eventually be replaced by a configure script. But for |
|
|
5 | # now, this simple makefile should do the job. |
|
|
6 | # |
|
|
7 | # Copyright (C) 1992 Frank Tore Johansen |
1 | # Copyright (C) 1992 Frank Tore Johansen |
8 | # Copyright (C) 2001 Mark Wedel |
2 | # Copyright (C) 2001 Mark Wedel |
|
|
3 | # Copyright (C) 2007 Marc Alexander Lehmann |
9 | # |
4 | # |
10 | # This program is free software; you can redistribute it and/or modify |
5 | # This program is free software; you can redistribute it and/or modify |
11 | # it under the terms of the GNU General Public License as published by |
6 | # it under the terms of the GNU General Public License as published by |
12 | # the Free Software Foundation; either version 2 of the License, or |
7 | # the Free Software Foundation; either version 2 of the License, or |
13 | # (at your option) any later version. |
8 | # (at your option) any later version. |
… | |
… | |
66 | swap.C\ |
61 | swap.C\ |
67 | time.C\ |
62 | time.C\ |
68 | weather.C\ |
63 | weather.C\ |
69 | dynbuf.C\ |
64 | dynbuf.C\ |
70 | freezethaw.C\ |
65 | freezethaw.C\ |
71 | cfperl.xs ../plugins/common/plugin_common.C |
66 | cfperl.xs plugin_common.C |
72 | |
67 | |
73 | SUFFIXES = .xs |
68 | SUFFIXES = .xs |
74 | |
69 | |
75 | EXTRA_DIST = typemap genacc |
70 | EXTRA_DIST = typemap genacc |
76 | |
71 | |
… | |
… | |
83 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf |
78 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf |
84 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@ |
79 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@ |
85 | |
80 | |
86 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
81 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
87 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
82 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
88 | -DPLUGIN_SUFFIX=\".so\" \ |
83 | -DPLUGIN_SUFFIX=\".so\" |
89 | -I$(top_srcdir)/plugins/common/include |
|
|
90 | |
84 | |
91 | LIBDL= |
85 | LIBDL= |
92 | crossfire_LDFLAGS= |
86 | crossfire_LDFLAGS= |
93 | crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ |
87 | crossfire_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ |
94 | ../socket/libsocket.a $(LIBDL) $(PERLLIB) |
88 | ../socket/libsocket.a $(LIBDL) $(PERLLIB) |
95 | |
89 | |
96 | ../common/libcross.a: |
90 | ../common/libcross.a: |
97 | ( cd ../common ; make libcross.a ) |
91 | ( cd ../common ; $(MAKE) libcross.a ) |
98 | |
92 | |
99 | ../random_maps/librandom_map.a: |
93 | ../random_maps/librandom_map.a: |
100 | ( cd ../random_maps ; make librandom_map.a ) |
94 | ( cd ../random_maps ; $(MAKE) librandom_map.a ) |
101 | |
95 | |
102 | ../socket/libsocket.a: |
96 | ../socket/libsocket.a: |
103 | ( cd ../socket ; make libsocket.a ) |
97 | ( cd ../socket ; $(MAKE) libsocket.a ) |
104 | |
98 | |
105 | # Check if everything is installed as it should |
99 | # Check if everything is installed as it should |
106 | installcheck-local: |
100 | installcheck-local: |
107 | $(bindir)/crossfire -o |
101 | $(bindir)/crossfire -o |
108 | |
102 | |