X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=Makefile;h=704ee7304ec7b9ffab9a2dfdcb5eced7c1e3e53a;hp=8d26f4984c06bed137ea7743bbb1a336f2f1da8d;hb=20e478b83e754fd9b19d58abe79732fa0dd20ffc;hpb=c555641af6f4021d744a50abd5084a174614dd54 diff --git a/Makefile b/Makefile index 8d26f49..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 +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)