blob: ed573238d0c7bda809970b8559ef232613c268b6 (
plain) (
blame)
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
|
################ PLUGIN CONFIGURATION ##############################
# #
# When you add a plugin, add its name here: #
# Example: if you have a plugin named my_cool_plugin.c and another #
# one named my_second_plugin.c, add them to the list like this: #
# #
# MYPLUGINS = my_cool_plugin my_second_plugin #
# #
# Note: DO NOT include the .c extension!!! #
MYPLUGINS =
# #
######### DO NOT EDIT ANYTHING BELOW THIS LINE!!! ##################
PLUGINS = sample db2sql HPMHooking $(MYPLUGINS)
COMMON_H = $(shell ls ../common/*.h)
CONFIG_H = $(shell ls ../config/*.h ../config/*/*.h)
MAP_H = $(shell ls ../map/*.h)
CHAR_H = $(shell ls ../char/*.h)
LOGIN_H = $(shell ls ../login/*.h)
ALL_H = $(COMMON_H) $(CONFIG_H) $(MAP_H) $(CHAR_H) $(LOGIN_H)
@SET_MAKE@
CC = @CC@
export CC
#####################################################################
.PHONY: all $(PLUGINS) clean buildclean help
all: $(PLUGINS) Makefile
$(PLUGINS): %: ../../plugins/%@DLLEXT@
buildclean:
@echo " CLEAN plugins (build temp files)"
@rm -rf *.o
clean: buildclean
@echo " CLEAN plugins"
@rm -rf ../../plugins/*@DLLEXT@
help:
@echo "possible targets are $(PLUGINS:%='%') 'all' 'clean' 'help'"
@echo "'sample' - sample plugin"
@echo "'help' - outputs this message"
#####################################################################
Makefile: Makefile.in
@$(MAKE) -C ../.. src/plugins/Makefile
.SECONDEXPANSION:
../../plugins/%@DLLEXT@: %.c $(ALL_H) $$(shell ls %/* 2>/dev/null)
@echo " CC $<"
@$(CC) @DEFS@ @CFLAGS@ @CPPFLAGS@ @LDFLAGS@ @SOFLAGS@ -o $@ $<
|