Permalink
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (56 sloc) 1.96 KB
#
# This is the Makefile for the OSX flavor
#
# You need to install Xcode and its commandline tools
# On OSX keep in mind that Apple marks the system openssl lib
# functions as deprecated, in favor of their own crypto libs. This
# leads to (unnecessary) warnings. (goto fail for the win).
# You can add your own openssl includes/lib dirs here, to get rid of it.
INC=
LIBS=
DEFS=
LDFLAGS=
DEFS+=-DUSE_SSL
LIBS+=-lssl -lcrypto
#override lophttps secure cipher list
#DEFS+=-DUSE_CIPHERS=\"ALL:!ADH:!LOW:!EXP:!RC4:!MD5:kDHE:@STRENGTH\"
CXXFLAGS=-std=c++11 -Wall -O2 -pedantic $(INC) $(DEFS)
CXX=c++
LD=c++
all: lhttpd frontend
clean:
rm -f *.o
distclean: clean
rm -f lhttpd
lhttpd: lonely.o socket.o main.o misc.o log.o multicore.o config.o flavor.o client.o dh.o ssl.o
$(LD) $(LDFLAGS) lonely.o socket.o main.o misc.o log.o multicore.o config.o flavor.o\
client.o dh.o ssl.o -o lhttpd $(LIBS)
frontend: lonely.o socket.o frontend-main.o log.o multicore.o rproxy.o config.o misc.o flavor.o client.o dh.o ssl.o
$(LD) $(LDFLAGS) lonely.o socket.o frontend-main.o misc.o log.o multicore.o rproxy.o\
config.o flavor.o client.o dh.o ssl.o -o frontend $(LIBS)
frontend-main.o: frontend-main.cc
$(CXX) $(CXXFLAGS) -c frontend-main.cc
rproxy.o: rproxy.cc rproxy.h
$(CXX) $(CXXFLAGS) -c rproxy.cc
config.o: config.cc config.h
$(CXX) $(CXXFLAGS) -c config.cc
multicore.o: multicore.cc multicore.h
$(CXX) $(CXXFLAGS) -c multicore.cc
log.o: log.cc log.h
$(CXX) $(CXXFLAGS) -c log.cc
misc.o: misc.cc misc.h
$(CXX) $(CXXFLAGS) -c misc.cc
main.o: main.cc
$(CXX) $(CXXFLAGS) -c main.cc
flavor.o: flavor-osx.cc flavor.h
$(CXX) $(CXXFLAGS) -c flavor-osx.cc -o flavor.o
socket.o: socket.cc socket.h
$(CXX) $(CXXFLAGS) -c socket.cc
lonely.o: lonely.cc lonely.h
$(CXX) $(CXXFLAGS) -c lonely.cc
client.o: client.cc client.h
$(CXX) $(CXXFLAGS) -c client.cc
dh.o: dh.cc dh2048.cc
$(CXX) $(CXXFLAGS) -c dh.cc
ssl.o: ssl.cc ssl.h
$(CXX) $(CXXFLAGS) -c ssl.cc