1 | # |
1 | # |
2 | # This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | # This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | # |
3 | # |
4 | # Copyright (©) 2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | # Copyright (©) 2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | # Copyright (©) 1992 Frank Tore Johansen |
5 | # Copyright (©) 1992 Frank Tore Johansen |
6 | # Copyright (©) 2001 Mark Wedel |
6 | # Copyright (©) 2001 Mark Wedel |
7 | # Copyright (©) 2007 Marc Alexander Lehmann |
7 | # Copyright (©) 2007 Marc Alexander Lehmann |
8 | # |
8 | # |
9 | # Deliantra is free software: you can redistribute it and/or modify it under |
9 | # Deliantra is free software: you can redistribute it and/or modify it under |
… | |
… | |
32 | apply.C\ |
32 | apply.C\ |
33 | attack.C\ |
33 | attack.C\ |
34 | build_map.C\ |
34 | build_map.C\ |
35 | c_misc.C\ |
35 | c_misc.C\ |
36 | c_move.C\ |
36 | c_move.C\ |
37 | c_new.C\ |
|
|
38 | c_object.C\ |
37 | c_object.C\ |
39 | c_party.C\ |
38 | c_party.C\ |
40 | c_range.C\ |
39 | c_range.C\ |
41 | c_wiz.C\ |
40 | c_wiz.C\ |
42 | commands.C\ |
41 | commands.C\ |
… | |
… | |
64 | cfperl.xs\ |
63 | cfperl.xs\ |
65 | evthread.C |
64 | evthread.C |
66 | |
65 | |
67 | SUFFIXES = .xs |
66 | SUFFIXES = .xs |
68 | |
67 | |
69 | EXTRA_DIST = typemap genacc |
68 | EXTRA_DIST = typemap genacc genconst |
70 | |
69 | |
|
|
70 | CLEANFILES = const_iv.h perlxsi.c |
|
|
71 | |
|
|
72 | CONST_SRC = ../include/define.h ../include/spells.h ../include/attack.h \ |
|
|
73 | ../include/skills.h ../include/material.h ../include/sounds.h \ |
|
|
74 | ../include/object.h ../include/treasure.h ../include/client.h \ |
|
|
75 | ../include/logger.h ../include/rmg.h |
|
|
76 | |
|
|
77 | const_iv.h: genconst $(CONST_SRC) |
|
|
78 | $(PERL) genconst $(CONST_SRC) |
|
|
79 | |
71 | cfperl.C: cfperl.xs genacc typemap |
80 | cfperl.C: cfperl.xs typemap genacc |
|
|
81 | cfperl.C: const_iv.h |
72 | cfperl.C: ../include/object.h ../include/client.h ../include/player.h |
82 | cfperl.C: ../include/object.h ../include/client.h ../include/player.h |
73 | cfperl.C: ../include/map.h ../include/living.h ../include/global.h |
83 | cfperl.C: ../include/map.h ../include/living.h ../include/global.h |
74 | cfperl.C: ../include/region.h ../include/cfperl.h ../random_maps/random_map.h |
84 | cfperl.C: ../include/region.h ../include/cfperl.h ../include/rmg.h |
|
|
85 | cfperl.C: ../include/define.h |
75 | |
86 | |
76 | .xs.C: typemap |
87 | .xs.C: typemap |
77 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf |
88 | $(PERL) -MExtUtils::Embed -e xsinit -- -std cf |
78 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@ |
89 | PERL="$(PERL)" srcdir="$(srcdir)" $(PERL) @PERLPRIVLIBEXP@/ExtUtils/xsubpp -C++ -csuffix .C -typemap @PERLPRIVLIBEXP@/ExtUtils/typemap -typemap $(srcdir)/typemap -prototypes $(srcdir)/cfperl.xs >$@~ && mv $@~ $@ |
79 | |
90 | |
80 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
91 | AM_CPPFLAGS = -I$(top_srcdir)/include -DDATADIR=\"$(pkgdatadir)\" -DCONFDIR=\"$(pkgconfdir)\" \ |
81 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
92 | -DLIBDIR=\"$(pkglibdir)\" -DLOCALDIR=\"$(pkgstatedir)\" \ |
82 | -DPLUGIN_SUFFIX=\".so\" |
93 | -DPLUGIN_SUFFIX=\".so\" |
83 | |
94 | |
84 | LIBDL= |
95 | LIBDL= |
85 | deliantra_server_LDFLAGS= |
96 | deliantra_server_LDFLAGS= |
86 | deliantra_server_LDADD = ../common/libcross.a ../random_maps/librandom_map.a \ |
97 | deliantra_server_LDADD = \ |
|
|
98 | ../common/libcross.a \ |
|
|
99 | ../random_maps/librandom_map.a \ |
87 | ../socket/libsocket.a $(LIBDL) $(PERLLIB) |
100 | ../socket/libsocket.a $(LIBDL) $(PERLLIB) |
88 | |
101 | |
89 | ../common/libcross.a: |
102 | ../common/libcross.a: |
90 | ( cd ../common ; $(MAKE) libcross.a ) |
103 | ( cd ../common ; $(MAKE) libcross.a ) |
91 | |
104 | |
92 | ../random_maps/librandom_map.a: |
105 | ../random_maps/librandom_map.a: |