forked from NWNX/nwnx2-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
77 lines (64 loc) · 2 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
CXX = @CXX@
LIBS = @LIBS@ -ldl
DEFS = @DEFS@
LFLAGS = -w -fPIC -shared -W -Wall @LDFLAGS@
CFLAGS = @CFLAGS@ -Iinclude $(DEFS)
CPPFLAGS = @CPPFLAGS@ -Iinclude $(DEFS)
# Add your own plugins to the compilation with this configure option:
# ./configure --with-extraplugins="plugin1 plugin2 ..."
SUBDIRS = \
plugins/areas \
plugins/chat \
plugins/defenses \
plugins/dmactions \
plugins/events \
plugins/extend \
plugins/fixes \
plugins/funcs \
plugins/funcsext \
plugins/functions \
plugins/hashset \
plugins/mnx \
plugins/names \
plugins/odmbc \
plugins/profiler \
plugins/reset \
plugins/resman \
plugins/spells \
plugins/structs \
plugins/system \
plugins/tmi \
plugins/tweaks \
plugins/visibility \
plugins/weapons \
@EXTRAPLUGINDIRS@
LIBRARY = \
lib/nwn_data.o \
lib/nwn_funcs.o \
lib/nwn_hooks.o \
lib/nx_hook.o \
lib/nx_log.o \
lib/nx_safe.o \
lib/nx_signature.o
all: nwnx2.so subdirs override
nwnx2.so: nwnx2lib.o NWNXBase.o modules.o lists.o gline.o $(LIBRARY)
$(CXX) $(LFLAGS) -o $@ $^ $(LIBS)
# always execute regardless of existance or timestamp
.PHONY: clean subdirs override $(SUBDIRS)
subdirs: $(SUBDIRS)
override:
make -C override all
$(SUBDIRS):
$(MAKE) -C $@ PLUGIN_CFLAGS="$(CFLAGS)" PLUGIN_CPPFLAGS="$(CPPFLAGS)" PLUGIN_LFLAGS="$(LFLAGS)"
clean:
for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
/bin/rm -f *.o *.so lib/*.o *~
make -C override clean
install: all
for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
mkdir -p @prefix@/
install nwnx2.so @prefix@/
if [ ! -f @prefix@/nwnx2.ini ]; then install nwnx2.ini @prefix@/; fi
distclean:
for i in $(SUBDIRS); do $(MAKE) -C $$i $@; done
/bin/rm -f Makefile config.h config.status config.cache config.log *.o *.so lib/*.o *~