A plugin for the Geany editor.
Last active
August 29, 2015 14:00
-
-
Save sebgod/0fbf57035f7784409b4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* File: <PLUGINNAME>.m | |
* Main author: <AUTHOR> <<EMAIL>> | |
* Created on: <CREATED_ON> | |
* vim: ft=c ff=unix ts=4 sw=4 et | |
* | |
*******************************************************************************/ | |
#include "<PLUGINNAME>.h" | |
GeanyPlugin *geany_plugin; | |
GeanyData *geany_data; | |
GeanyFunctions *geany_functions; | |
PLUGIN_VERSION_CHECK(211) | |
PLUGIN_SET_INFO("<PLUGINNAME>", | |
"<PLUGINNAME> description", | |
"<VERSION>", | |
"<AUTHOR> <<EMAIL>>" | |
); | |
void plugin_init(GeanyData *data) | |
{ | |
} | |
void plugin_cleanup(void) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* File: <PLUGINNAME>.h | |
* Main author: <AUTHOR> <<EMAIL>> | |
* Created on: <CREATED_ON> | |
* vim: ft=c ff=unix ts=4 sw=4 et | |
* | |
*******************************************************************************/ | |
#include <geanyplugin.h> | |
extern GeanyPlugin *geany_plugin; | |
extern GeanyData *geany_data; | |
extern GeanyFunctions *geany_functions; | |
void plugin_init(GeanyData *data); | |
void plugin_cleanup(void); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.dll | |
*.exe | |
*.a | |
*.so | |
*.dylib | |
*.err | |
*.beams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = `gcc` | |
CFLAGS = -fPIC | |
GEANY_CFLAGS = `pkg-config --cflags geany` | |
GEANY_LIBS = `pkg-config --libs geany` | |
GEANY_LIBDIR = `pkg-config --variable=libdir geany`/geany | |
INSTALL=install | |
.PHONY: all clean install sinstall realclean | |
<PLUGINNAME>.so: <PLUGINNAME>.o | |
$(CC) $< -o $@ --shared $(GEANY_LIBS) | |
<PLUGINNAME>.o: <PLUGINNAME>.c <PLUGINNAME>.h | |
$(CC) -c $< $(CFLAGS) $(GEANY_CFLAGS) | |
all: <PLUGINNAME> | |
install: <PLUGINNAME>.so | |
$(INSTALL) $< $(GEANY_LIBDIR) | |
sinstall: <PLUGINNAME>.so | |
sudo $(INSTALL) $< $(GEANY_LIBDIR) | |
clean: | |
rm -f *.err | |
rm -f *.jar | |
rm -f *.dll | |
rm -f *.so | |
rm -f *.a | |
rm -f *.dylib | |
rm -f *.beams | |
realclean: clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment