CXX ?= g++ CFLAGS ?= -O2 -Wall -Wextra `pkg-config libxml-2.0 --cflags` `pkg-config libxml++-3.0 --cflags` -g PREFIX ?= /usr/local/bin LDFLAGS ?= -lcurl -lrestbed `pkg-config libxml-2.0 --libs` `pkg-config libxml++-3.0 --libs` PARSERS = udrevaka.o padagali.o lightofindia.o ukarla.o alcapone.o plac.o zo.o suzies.o tao.o .PHONY: default default: menuprint menuprint: main.o meal.o menu.o network.o restaurants.o environment.o $(PARSERS) $(CXX) $(CFLAGS) -o $@ $^ ${LDFLAGS} main.o: main.cpp restaurant.hpp menu.hpp meal.hpp restaurants/restaurants.hpp $(CXX) $(CFLAGS) -c -o $@ $< meal.o: meal.cpp meal.hpp $(CXX) $(CFLAGS) -c -o $@ $< menu.o: menu.cpp menu.hpp $(CXX) $(CFLAGS) -c -o $@ $< network.o: network/network.cpp network/network.hpp $(CXX) $(CFLAGS) -c -o $@ $< restaurants.o: restaurants/restaurants.cpp restaurants/restaurants.hpp $(CXX) $(CFLAGS) -c -o $@ $< environment.o: environment.cpp environment.hpp $(CXX) $(CFLAGS) -c -o $@ $< udrevaka.o: restaurants/udrevaka.cpp restaurants.o restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< padagali.o: restaurants/padagali.cpp restaurants.o restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< lightofindia.o: restaurants/lightofindia.cpp restaurants.o restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< ukarla.o: restaurants/ukarla.cpp restaurants.o restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< alcapone.o: restaurants/alcapone.cpp restaurants.o restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< plac.o: restaurants/plac.cpp restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< zo.o: restaurants/zo.cpp restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< suzies.o: restaurants/suzies.cpp restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< tao.o: restaurants/tao.cpp restaurants/restaurants.hpp network/network.hpp htmlparser.hpp $(CXX) $(CFLAGS) -c -o $@ $< clean: rm -Rf *.o menuprint