[Sumover-dev] [svn commit] r4836 - vic/branches/cc/cc/tools

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Fri May 14 00:10:35 BST 2010


Author: soohyunc
Date: Fri May 14 00:10:35 2010
New Revision: 4836

Added:
   vic/branches/cc/cc/tools/Makefile   (contents, props changed)
Modified:
   vic/branches/cc/cc/tools/xr_send.cc

Log:
added a simple Makefile for easy compile



Added: vic/branches/cc/cc/tools/Makefile
==============================================================================
--- (empty file)
+++ vic/branches/cc/cc/tools/Makefile	Fri May 14 00:10:35 2010
@@ -0,0 +1,17 @@
+# $Id$
+
+CPP	:= g++
+SRCS	:= $(wildcard *.cc)
+OBJS	:= $(SRCS:.cc=.o)
+CFLAGS	:= -Wall -g -O2
+RM	:= rm -f
+
+.PHONY:	clean distclean
+
+all: $(SRCS)
+	$(CPP) $(CFLAGS) asv.cc -o asv
+	$(CPP) $(CFLAGS) xr_send.cc -o xr_send
+
+clean:
+	$(RM) asv xr_send
+

Modified: vic/branches/cc/cc/tools/xr_send.cc
==============================================================================
--- vic/branches/cc/cc/tools/xr_send.cc	(original)
+++ vic/branches/cc/cc/tools/xr_send.cc	Fri May 14 00:10:35 2010
@@ -57,7 +57,7 @@
 	// variables
 	string items, stat;
 	double time;
-	double offset;
+	double offset = 0.;
 	int b, e;  // begin and end of XR fields
 	bool vf = false;  // the very first line
 



More information about the Sumover-dev mailing list