CFLAGS=-I. DEPS = commission_func.h OBJ = fcgicommissioning.o commission_func.o LIBS := -ljsoncpp -lfcgi++ -lfcgi %.o: %.cc $(DEPS) $(CXX) -c -o $@ $< $(CFLAGS) commissioning.fcgi: $(OBJ) $(CXX) $(LDFLAGS) -o $@ $^ $(CFLAGS) $(LIBS) install: install -d $(DESTDIR)/usr/bin install -m 0777 commissioning.fcgi $(DESTDIR)/usr/bin .PHONY : clean clean: -$(RM) $(OBJ)