mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 02:30:19 +00:00
add fishlim plugin
This commit is contained in:
40
plugins/fishlim/Makefile
Normal file
40
plugins/fishlim/Makefile
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
OURCFLAGS = -Wall -Wextra -Wno-unused-parameter -std=c99 -pedantic `pkg-config --cflags glib-2.0 libcrypto` -DG_DISABLE_DEPRECATED=1 -fPIC $(CFLAGS)
|
||||
#OURLINKFLAGS = `pkg-config --libs glib-2.0 libcrypto` -shared -fPIC -Wl,-z,defs $(CFLAGS) $(LDFLAGS)
|
||||
OURLINKFLAGS = `pkg-config --libs glib-2.0 libcrypto` $(CFLAGS) $(LDFLAGS)
|
||||
|
||||
BASE_OBJECTS = irc.o fish.o keystore.o misc.o
|
||||
PLUGIN_OBJECTS = $(BASE_OBJECTS) xchat_plugin.o
|
||||
TEST_OBJECTS = $(BASE_OBJECTS) test.o
|
||||
|
||||
all: fishlim.so test
|
||||
|
||||
fish.o: fish.h keystore.h misc.h
|
||||
irc.o: irc.h
|
||||
keystore.o: keystore.h irc.h fish.h misc.h
|
||||
misc.o: misc.h
|
||||
test.o: fish.h
|
||||
xchat_plugin.o: fish.h irc.h keystore.h
|
||||
|
||||
.c.o:
|
||||
$(CC) $(OURCFLAGS) -c $< -o $@
|
||||
|
||||
fishlim.so: $(PLUGIN_OBJECTS)
|
||||
$(CC) -shared $(OURLINKFLAGS) $(PLUGIN_OBJECTS) -o $@
|
||||
|
||||
test: $(TEST_OBJECTS)
|
||||
$(CC) $(OURLINKFLAGS) $(TEST_OBJECTS) -o $@
|
||||
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
||||
clean:
|
||||
-$(RM) -f $(PLUGIN_OBJECTS) $(TEST_OBJECTS) fishlim.so test
|
||||
distclean: clean
|
||||
|
||||
install: fishlim.so
|
||||
install -d $(DESTDIR)/usr/lib/xchat/plugins/
|
||||
install -m 644 fishlim.so $(DESTDIR)/usr/lib/xchat/plugins/
|
||||
uninstall:
|
||||
rm $(DESTDIR)/usr/lib/xchat/plugins/fishlim.so
|
||||
|
||||
|
||||
Reference in New Issue
Block a user