Commit a307c6be authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Whack makefile to build a non-ssl verison of tmcc; we already allow

local nodes to connect to tmcd without using ssl, and this binary can
be used on the MFS.
parent 668a2a78
......@@ -20,7 +20,8 @@ TMLIBS = ${OBJDIR}/lib/libtb/libtb.a
# For SSL enabled tmcd/tmcc
TMLIBS += -lssl -lcrypto
SSLOBJ = ssl.o
......@@ -32,18 +33,22 @@ ifeq ($(EVENTSYS),1)
tmcd: tmcd.c ${TMCDLIBS} decls.h version.o $(SSLOBJ)
$(CC) $(CFLAGS) $(TMCDCFLAGS) -o tmcd $< \
$(CC) $(CFLAGS) $(SSLFLAGS) $(TMCDCFLAGS) -o tmcd $< \
version.o $(SSLOBJ) \
$(LFLAGS) -L/usr/local/lib/mysql -lmysqlclient \
tmcc: tmcc.o $(SSLOBJ)
$(CC) $(CFLAGS) -g -o tmcc tmcc.o $(SSLOBJ) $(LFLAGS) -static $(TMLIBS)
tmcc: tmcc.c decls.h $(SSLOBJ)
$(CC) $(CFLAGS) $(SSLFLAGS) -static -g -o tmcc $< $(SSLOBJ) \
tmcc-nossl: tmcc.c decls.h
$(CC) $(CFLAGS) -static -g -o tmcc-nossl $< $(LFLAGS)
findif: findif.o
$(CC) $(CFLAGS) -g -o findif findif.o $(LFLAGS) -static
tmcc.o: tmcc.c decls.h
ssl.o: ssl.c ssl.h decls.h
version.c: tmcd.c
echo >$@ "char build_info[] = \"Built `date +%d-%b-%Y` by `id -nu`@`hostname | sed 's/\..*//'`:`pwd`\";"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment