sammler/plugins/Makefile

30 lines
524 B
Makefile
Raw Normal View History

2007-04-01 14:56:14 +02:00
CFLAGS := -O2 -Wall -fno-stack-protector -I../include
LDFLAGS := -ldl -rdynamic
# ############################
all: $(PLUGINS:%=%.so)
%.d: %.c
$(CC) $(CFLAGS) -MM -c $< -o $@
%.o: %.c
$(CC) $(CFLAGS) -fPIC -o $@ -c $<
apache.so: apache.o
$(LD) -shared -lcurl -o $@ $^
2007-04-03 18:49:39 +02:00
conntrack.so: conntrack.o
$(LD) -shared -lnfnetlink -lnetfilter_conntrack -o $@ $^
2007-04-01 14:56:14 +02:00
mysql.so: mysql.o mysql_helper.o
$(LD) -shared -lmysqlclient -o $@ $^
%.so: %.o
$(LD) -shared -o $@ $<
clean:
rm -rf *.d *.o *.so
-include $(PLUGINS:%=%.d)