
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6338 54d463be-8e91-2dee-dedb-b68131a5f0ec
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
|
|
OBJECTS = sample.dll sig.dll pid.dll gui.dll upnp.dll httpd.dll
|
|
|
|
ifdef CYGWIN
|
|
PLUGINEXT = dll
|
|
else
|
|
PLUGINEXT = so
|
|
endif
|
|
|
|
PLUGINS = $(OBJECTS:%.dll=%.$(PLUGINEXT))
|
|
COMMON_H = ../common/plugin.h
|
|
|
|
txt sql all: $(PLUGINS)
|
|
|
|
%.$(PLUGINEXT): %.c
|
|
$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $<
|
|
@touch $@
|
|
|
|
httpd.$(PLUGINEXT): httpd.c
|
|
$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $< \
|
|
../common/obj/minimalloc.o ../common/obj/db.o ../common/obj/showmsg.o \
|
|
../common/obj/utils.o ../common/obj/ers.o
|
|
@touch $@
|
|
|
|
sig.$(PLUGINEXT): sig.c
|
|
$(CC) $(CFLAGS) -shared -o ../../plugins/$@ $< \
|
|
../common/obj/showmsg.o
|
|
@touch $@
|
|
|
|
gui.$(PLUGINEXT): ../../plugins/gui.conf
|
|
httpd.$(PLUGINEXT): ../../plugins/httpd.conf
|
|
upnp.$(PLUGINEXT): ../../plugins/upnp.conf
|
|
|
|
../../plugins/%.conf: %.txt
|
|
cp -r $< $@
|
|
|
|
../../plugins/gui.conf: gui.txt
|
|
../../plugins/httpd.conf: httpd.txt
|
|
../../plugins/upnp.conf: upnp.txt
|
|
|
|
depend:
|
|
makedepend -fGNUmakefile -o.$(PLUGINEXT) -Y. -Y../common *.c
|
|
clean:
|
|
rm -rf $(PLUGINS)
|
|
|
|
# DO NOT DELETE
|
|
|
|
sample.$(PLUGINEXT): sample.c $(COMMON_H)
|
|
sig.$(PLUGINEXT): sig.c $(COMMON_H)
|
|
pid.$(PLUGINEXT): pid.c $(COMMON_H)
|
|
gui.$(PLUGINEXT): gui.c $(COMMON_H)
|