]> git.sesse.net Git - cubemap/blobdiff - Makefile
Support UDP packets larger than 4 kB.
[cubemap] / Makefile
index 704ee7304ec7b9ffab9a2dfdcb5eced7c1e3e53a..218285eeefeb1493010c45e1d7bd86945753212b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,19 @@
 CC=gcc
 CXX=g++
 PROTOC=protoc
-CXXFLAGS=-Wall -O2 -g
-LDLIBS=-lcurl -lpthread -lprotobuf
+CXXFLAGS=-Wall -O2 -g -pthread
+LDLIBS=-lprotobuf -pthread
 
-OBJS=cubemap.o server.o mutexlock.o input.o state.pb.o
+OBJS=main.o client.o server.o stream.o udpstream.o serverpool.o mutexlock.o input.o httpinput.o udpinput.o parse.o config.o markpool.o acceptor.o stats.o accesslog.o thread.o util.o log.o state.pb.o
 
 all: cubemap
 
 %.pb.cc %.pb.h : %.proto
        $(PROTOC) --cpp_out=. $<
 
-%.o: %.cpp
+%.o: %.cpp state.pb.h
+       $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
+%.pb.o: %.pb.cc
        $(CXX) -MMD -MP $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
 cubemap: $(OBJS)
        $(CXX) -o cubemap $(OBJS) $(LDLIBS)
@@ -20,5 +22,7 @@ DEPS=$(OBJS:.o=.d)
 -include $(DEPS)
 
 clean:
-       $(RM) cubemap $(OBJS) $(DEPS)
+       $(RM) cubemap $(OBJS) $(DEPS) state.pb.h state.pb.cc
 
+.PHONY: clean
+.SUFFIXES: