[Spread-cvs] commit: r606 - branches/spread_4_2_debug/daemon

jschultz at spread.org jschultz at spread.org
Wed Oct 23 15:17:06 EDT 2013


Author: jschultz
Date: 2013-10-23 15:17:06 -0400 (Wed, 23 Oct 2013)
New Revision: 606

Added:
   branches/spread_4_2_debug/daemon/Makefile
Log:
Adding Makefile to get rid of optimization in compilation


Added: branches/spread_4_2_debug/daemon/Makefile
===================================================================
--- branches/spread_4_2_debug/daemon/Makefile	                        (rev 0)
+++ branches/spread_4_2_debug/daemon/Makefile	2013-10-23 19:17:06 UTC (rev 606)
@@ -0,0 +1,128 @@
+.SUFFIXES: .lo .to .tlo
+
+prefix=/usr/local
+exec_prefix=${prefix}
+bindir=${exec_prefix}/bin
+sbindir=${exec_prefix}/sbin
+datarootdir=@datarootdir@
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+mandir=${prefix}/man
+mansubdir=man
+sysconfdir=${prefix}/etc
+piddir=/var/run
+srcdir=.
+top_srcdir=..
+buildtoolsdir=$(top_srcdir)/buildtools
+host=i386-apple-darwin10.8.0
+
+DESTDIR=
+
+SPREAD_PROGRAM=${exec_prefix}/sbin/spread
+SP_MAJOR_VERSION=4
+SP_MINOR_VERSION=2
+SP_PATCH_VERSION=0
+VERSION=4.2.0
+
+PATHS= 
+
+#libspread-util includes
+LIBSPREADUTIL_DIR=../libspread-util
+LIBSPREADUTIL_PATHS=-I$(LIBSPREADUTIL_DIR)/include -I$(top_srcdir)/libspread-util/include
+LIBSPREADUTIL_LDFLAGS=-rdynamic
+LIBSPREADUTIL_LIBS=-ldl
+
+CC=gcc
+LD=gcc
+CFLAGS=-g -Wall #-O2
+CPPFLAGS=-I. -I$(srcdir) -I$(top_srcdir)/include -I../stdutil/src -I$(top_srcdir)/stdutil/src $(LIBSPREADUTIL_PATHS)  $(PATHS) -DHAVE_CONFIG_H
+LDFLAGS= $(LIBSPREADUTIL_LDFLAGS)
+LIBS=-lm  $(LIBSPREADUTIL_LIBS)
+THLDFLAGS= $(LIBSPREADUTIL_LDFLAGS)
+THLIBS=-lpthread  $(LIBSPREADUTIL_LIBS)
+LEX=/usr/bin/flex
+INSTALL=/usr/bin/install -c
+SOFTLINK=ln -s
+PERL=/usr/bin/perl
+ENT=@ENT@
+EXEEXT=
+
+TARGETS=spread$(EXEEXT) spmonitor$(EXEEXT)
+
+SPREADOBJS= spread.o protocol.o session.o groups.o membership.o network.o status.o log.o flow_control.o message.o lex.yy.o y.tab.o configuration.o acm.o acp-permit.o auth-null.o auth-ip.o
+
+MONITOR_OBJS= monitor.o lex.yy.o y.tab.o configuration.o acm.o
+
+TMONITOR_OBJS= monitor.to lex.yy.to y.tab.to configuration.to acm.to
+
+all: $(TARGETS)
+
+$(SPREADOBJS): config.h
+$(MONITOR_OBJS): config.h
+$(TMONITOR_OBJS): config.h
+
+.c.o:
+	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
+
+.c.to:
+	$(CC) $(CFLAGS) $(CPPFLAGS) -D_REENTRANT -c $< -o $*.to
+
+parser:
+	$(YACC) -d $(srcdir)/config_parse.y
+	$(LEX) $(srcdir)/config_gram.l
+
+#Disabled now because of timestamp errors causing extra regeneration
+#To build parser run "make parser" after ./configure is run.
+#lex.yy.c:       config_gram.l y.tab.c
+#	$(LEX) config_gram.l
+
+#y.tab.c:        config_parse.y
+#	$(YACC) -d config_parse.y
+
+spread$(EXEEXT): $(SPREADOBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a ../stdutil/lib/libstdutil-threaded-release.a
+	$(LD) -o $@ $(LDFLAGS) $(SPREADOBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a ../stdutil/lib/libstdutil-threaded-release.a $(LIBS)
+
+spmonitor$(EXEEXT): $(MONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+	$(LD) -o $@ $(LDFLAGS) $(MONITOR_OBJS) $(LIBS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+
+sptmonitor$(EXEEXT): $(TMONITOR_OBJS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+	$(LD) $(THLDFLAGS) -o $@ $(TMONITOR_OBJS) $(THLIBS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+
+testprog: spsend$(EXEEXT) sprecv$(EXEEXT)
+
+spsend$(EXEEXT): s.o $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+	$(LD) -o $@ $(LDFLAGS) s.o $(LIBS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+
+sprecv$(EXEEXT): r.o $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+	$(LD) -o $@ $(LDFLAGS) r.o $(LIBS) $(LIBSPREADUTIL_DIR)/lib/libspread-util.a
+
+clean:
+	rm -f *.lo *.tlo *.to *.o *.a *.dylib $(TARGETS) spsimple_user
+	rm -f config.cache config.log docs/*.out core
+	rm -rf autom4te.cache
+	rm -rf ../bin/$(host)
+
+distclean: clean
+	rm -f Makefile config.h config.status *~
+
+binrelease: $(TARGETS)
+	$(buildtoolsdir)/mkinstalldirs ../bin/$(host)
+	$(INSTALL) -m 0755 -s spmonitor$(EXEEXT) ../bin/$(host)/spmonitor$(EXEEXT)
+	$(INSTALL) -m 0755 -s spread$(EXEEXT) ../bin/$(host)/spread$(EXEEXT)
+
+install: $(TARGETS) install-files 
+
+install-files:
+	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(bindir)
+	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(sbindir)
+	$(buildtoolsdir)/mkinstalldirs $(DESTDIR)$(includedir)
+	$(INSTALL) -m 0755 -s spmonitor$(EXEEXT) $(DESTDIR)$(bindir)/spmonitor$(EXEEXT)
+	$(INSTALL) -m 0755 -s spread$(EXEEXT) $(DESTDIR)$(sbindir)/spread$(EXEEXT)
+
+uninstallall:	uninstall
+	-rmdir $(DESTDIR)$(bindir)
+	-rmdir $(DESTDIR)$(sbindir)
+
+uninstall: 
+	-rm -f $(DESTDIR)$(bindir)/spmonitor$(EXEEXT)
+	-rm -f $(DESTDIR)$(sbindir)/spread$(EXEEXT)




More information about the Spread-cvs mailing list