# Process this file with automake to produce Makefile.in AUTOMAKE_OPTIONS = gnu CLEANFILES = *~ DRIVERS=@DRIVERS@ PLUGINS=@PLUGINS@ bin_PROGRAMS = lcd4linux AM_CFLAGS = -D_GNU_SOURCE -Wall -W lcd4linux_LDFLAGS = lcd4linux_LDADD = @DRIVERS@ @PLUGINS@ @DRVLIBS@ @PLUGINLIBS@ lcd4linux_DEPENDENCIES = @DRIVERS@ @PLUGINS@ lcd4linux_SOURCES = \ lcd4linux.c \ cfg.c cfg.h \ debug.c debug.h \ drv.c drv.h \ evaluator.c evaluator.h \ hash.c hash.h \ layout.c layout.h \ pid.c pid.h \ timer.c timer.h \ thread.c thread.h \ udelay.c udelay.h \ qprintf.c qprintf.h \ \ widget.c widget.h \ widget_text.c widget_text.h \ widget_bar.c widget_bar.h \ widget_icon.c widget_icon.h \ widget_image.c widget_image.h \ widget_timer.c widget_timer.h \ widget_gpo.c widget_gpo.h \ \ plugin.c plugin.h \ plugin_cfg.c \ plugin_math.c \ plugin_string.c \ plugin_test.c \ plugin_time.c EXTRA_lcd4linux_SOURCES= \ drv_generic_text.c \ drv_generic_text.h \ drv_generic_graphic.c \ drv_generic_graphic.h \ drv_generic_gpio.c \ drv_generic_gpio.h \ drv_generic_serial.c \ drv_generic_serial.h \ drv_generic_parport.c \ drv_generic_parport.h \ drv_generic_i2c.c \ drv_generic_i2c.h \ drv_BeckmannEgle.c \ drv_BWCT.c \ drv_Crystalfontz.c \ drv_Curses.c \ drv_Cwlinux.c \ drv_G15.c \ drv_HD44780.c \ drv_Image.c \ drv_LCD2USB.c \ drv_LCDLinux.c \ drv_LCDTerm.c \ drv_LPH7508.c \ drv_LUIse.c \ drv_M50530.c \ drv_MatrixOrbital.c \ drv_MilfordInstruments.c \ drv_Noritake.c \ drv_NULL.c \ drv_RouterBoard.c \ drv_Sample.c \ drv_serdisplib.c \ drv_SimpleLCD.c \ drv_T6963.c \ drv_Trefon.c \ drv_USBLCD.c \ drv_WincorNixdorf.c \ drv_X11.c \ \ font_6x8.h \ \ lcd4linux_i2c.h \ \ plugin_apm.c \ plugin_cpuinfo.c \ plugin_diskstats.c \ plugin_dvb.c \ plugin_exec.c \ plugin_i2c_sensors.c \ plugin_imon.c \ plugin_isdn.c \ plugin_loadavg.c \ plugin_meminfo.c \ plugin_mysql.c \ plugin_netdev.c \ plugin_pop3.c \ plugin_ppp.c \ plugin_proc_stat.c \ plugin_python.c \ plugin_sample.c \ plugin_seti.c \ plugin_statfs.c \ plugin_uname.c \ plugin_uptime.c \ plugin_wireless.c \ plugin_xmms.c EXTRA_DIST = \ lcd4linux.conf.sample \ lcd4kde.conf \ l
#
# $Id: README.Plugins,v 1.1 2004/01/06 17:33:45 reinelt Exp $
#
This file contains instructions for writing plugins to lcd4linux.
- use the file 'plugin_sample.c' as a template
- copy the file to 'plugin_yourname.c' and edit
- replace the "$Id..." in the first line with "$Id: README.Plugins,v 1.1 2004/01/06 17:33:45 reinelt Exp $"
- add a short description what this plugin is for
- add your copyright notice (important: your name and email)
- replace the "$Log..." with "$Log: README.Plugins,v $
- replace the "$Log..." with "Revision 1.1 2004/01/06 17:33:45 reinelt
- replace the "$Log..." with "
- replace the "$Log..." with "Evaluator: functions with variable argument lists
- replace the "$Log..." with "Evaluator: plugin_sample.c and README.Plugins added
- replace the "$Log..." with ""
- remove all Log lines until "*/"
- do some documentation (I know that real programmers write programs, not documentation)
- use one or more of the example functions as templates for your own functions
- register your new functions to the init() function, delete the sample ones
- edit 'plugin.c', add a prototype and the call to your plugin_init_* function
- edit 'Makefile.am' and add your 'plugin_*.c' to lcd4linux_SOURCES
- compile and test with interactive mode ('-i')
- send me a patch (or check in if you have developer CVS access)
- enjoy