rrd based system stats
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
439 B

  1. CFLAGS := -O2 -Wall -fno-stack-protector -I../include
  2. LDFLAGS := -ldl -rdynamic
  3. # ############################
  4. all: $(PLUGINS:%=%.so)
  5. %.d: %.c
  6. $(CC) $(CFLAGS) -MM -c $< -o $@
  7. %.o: %.c
  8. $(CC) $(CFLAGS) -fPIC -o $@ -c $<
  9. apache.so: apache.o
  10. $(LD) -shared -lcurl -o $@ $^
  11. mysql.so: mysql.o mysql_helper.o
  12. $(LD) -shared -lmysqlclient -o $@ $^
  13. %.so: %.o
  14. $(LD) -shared -o $@ $<
  15. clean:
  16. rm -rf *.d *.o *.so
  17. -include $(PLUGINS:%=%.d)