33 lines
1.2 KiB
Makefile
33 lines
1.2 KiB
Makefile
CXX ?= g++
|
|
CFLAGS ?= -O2 -Wall -Wextra `pkg-config libxml-2.0 --cflags` `pkg-config libxml++-3.0 --cflags`
|
|
PREFIX ?= /usr/local/bin
|
|
LDFLAGS ?= -lcurl `pkg-config libxml-2.0 --libs` `pkg-config libxml++-3.0 --libs`
|
|
|
|
PARSERS = udrevaka.o padagali.o lightofindia.o ukarla.o
|
|
|
|
.PHONY: default
|
|
default: menuprint
|
|
|
|
menuprint: main.o meal.o menu.o network.o $(PARSERS)
|
|
$(CXX) $(CFLAGS) -o $@ $^ ${LDFLAGS}
|
|
|
|
main.o: main.cpp parser.hpp menu.hpp meal.hpp parsers/parsers.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 $@ $<
|
|
udrevaka.o: parsers/udrevaka.cpp parsers/parsers.hpp network/network.hpp htmlparser.hpp
|
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
|
padagali.o: parsers/padagali.cpp parsers/parsers.hpp network/network.hpp htmlparser.hpp
|
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
|
lightofindia.o: parsers/lightofindia.cpp parsers/parsers.hpp network/network.hpp htmlparser.hpp
|
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
|
ukarla.o: parsers/ukarla.cpp parsers/parsers.hpp network/network.hpp htmlparser.hpp
|
|
$(CXX) $(CFLAGS) -c -o $@ $<
|
|
|
|
clean:
|
|
rm -Rf *.o menuprint
|