- # Optional compiler flags - C++CMS templates need C++11
- O=-std=c++11
-
- trafficctrl: trafficctrl.cpp data.h ../strutil.o mainskin.o
- g++ $O -o $@ $@.cpp mainskin.o ../strutil.o -lcppcms -lcppdb -lbooster
- mainskin.cxx: mainskin.tmpl
- cppcms_tmpl_cc -o $@ mainskin.tmpl
- mainskin.o: mainskin.cxx data.h
- g++ $O -c mainskin.cxx
-
-
-
- .PHONY: clean distclean
- clean:
- rm *.o *.cxx || true
- distclean: clean
- rm trafficctrl trafficctrl_cron || true
|