po chwili namyslu jednak dolacze zrodla :-)
Jaqb
LIBS = -lpq -ldl CFLAGS = -I/usr/include/pgsql -DUSE_PGSQL -I/etc/lms/daemon -Wall -O2 LDFLAGS = -L/usr/lib/pgsql INSTALLDIR = /usr/local/almsd-20050322
SOURCES = prometheus.c OBJECTS = ${SOURCES:.c=.o}
OUT = prometheus.so
all: $(OUT)
$(OUT): ${OBJECTS} gcc -shared $(OBJECTS) -o $(OUT) $(LDFLAGS) $(LIBS) rm -rf $(OBJECTS)
clean: rm -rf $(OUT)
struct prometheus_module { MODULE base; unsigned char *file; unsigned char *keyword; };
// ten typ jest zupelnie nie potrzebny - patrz kod w pliku prometheus.c typedef struct { unsigned char *ipaddr; unsigned char *mac; unsigned char *name; unsigned char *uprate; unsigned char * upceil; unsigned char *downrate; unsigned char *downceil; int id; } HOSTS;
uczestnicy (1)
-
Jakub Walczak