TOPDIR=/root/turris include $(TOPDIR)/rules.mk include $(TOPDIR)/include/package.mk PC := PATH=$(STAGING_DIR_HOST)/bin:$(PATH) PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) PKG_CONFIG_LIBDIR=$(PKG_CONFIG_PATH) STAGING_PREFIX=$(STAGING_DIR)/usr $(PKG_CONFIG) MB_CFLAGS := $(shell $(PC) --cflags libmodbus) MB_LDFLAGS := $(shell $(PC) --libs libmodbus) export PATH=$(TARGET_PATH_PKG) CC=$(TARGET_CC_NOCACHE) LD=$(TARGET_LD_NOCACHE) CFLAGS=$(TARGET_CFLAGS) $(MB_CFLAGS) -std=gnu99 LDFLAGS=$(TARGET_LDFLAGS) $(MB_LDFLAGS) all: power-cgi upload power-cgi: power-cgi.c upload: rsync -av power-cgi micac:/www/burrow/power.cgi