X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=Makefile;h=704ee7304ec7b9ffab9a2dfdcb5eced7c1e3e53a;hp=c80ab9d537d5bee77f999c646997b2d733eb553f;hb=62d560b67de3a922bc26ef5c0c2a72a9a09e7905;hpb=97bdb597d4847308ce9d6982505b56a3a09e930b diff --git a/Makefile b/Makefile index c80ab9d..704ee73 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,16 @@ CC=gcc CXX=g++ +PROTOC=protoc CXXFLAGS=-Wall -O2 -g -LDLIBS=-lcurl +LDLIBS=-lcurl -lpthread -lprotobuf -OBJS=cubemap.o server.o mutexlock.o +OBJS=cubemap.o server.o mutexlock.o input.o state.pb.o all: cubemap +%.pb.cc %.pb.h : %.proto + $(PROTOC) --cpp_out=. $< + %.o: %.cpp $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $< cubemap: $(OBJS)