cc = gcc # CFLAGS = -Wall -g MQTT_CFLAGS = -lmosquitto -lpthread -ldl MQTT_CFLAGS += -I./includes MQTT_CFLAGS += -L./mqtt_libs SQLITE3_CFLAGS = -lpthread -ldl -lcjson SQLITE3_CFLAGS += -I./includes all: sqlite_cgi_base: $(cc) sqlite3.c sqlite_cgi_base.c -o sqlite_cgi_base.cgi $(SQLITE3_CFLAGS) sqlite_cgi_insert_base: $(cc) sqlite3.c sqlite_cgi_insert_base.c -o sqlite_cgi_insert_base.cgi $(SQLITE3_CFLAGS) mqtt_sub_ctos: $(cc) mqtt_sub_ctos.c -o mqtt_sub_ctos.cgi $(MQTT_CFLAGS) clean: rm -rf *.cgi