CC = gcc CFLAGS = -Wall -O2 LDFLAGS = -lcjson all: json_service json_service: json_service.c $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) install: json_service sudo cp json_service /usr/lib/cgi-bin/ sudo chmod +x /usr/lib/cgi-bin/json_service clean: rm -f json_service