|
From: Danny B. <dan...@us...> - 2009-02-09 23:24:10
|
Update of /cvsroot/roadmap/roadmap/src/win32 In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17795/win32 Modified Files: Makefile Added Files: roadmap_build.c Log Message: Add a build timestamp so I know which version I'm testing. --- NEW FILE: roadmap_build.c --- /* * LICENSE: * * Copyright 2008 Danny Backx * * This file is part of RoadMap. * * RoadMap is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * RoadMap is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with RoadMap; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /** * @file * @brief insert a build timestamp * @ingroup windows */ const char *roadmap_build(void) { return ROADMAP_BUILD_DATE_TIME; } Index: Makefile =================================================================== RCS file: /cvsroot/roadmap/roadmap/src/win32/Makefile,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Makefile 9 Feb 2009 19:39:17 -0000 1.19 --- Makefile 9 Feb 2009 23:24:04 -0000 1.20 *************** *** 9,12 **** --- 9,17 ---- # + # + # Produce a build timestamp + # + BUILD_DATETIME = `date +%Y%m%d.%H%M` + TOP = .. *************** *** 66,71 **** --- 71,79 ---- wroadmap.exe: roadmap_main.o libwroadmap.a roadmap.rsc \ + roadmap_build.c \ $(TOP)/libguiroadmap.a $(filter %.a, $(LIBS)) + $(CC) -DROADMAP_BUILD_DATE_TIME='"'$(BUILD_DATETIME)'"' -c roadmap_build.c $(CC) $(LDFLAGS) -o wroadmap.exe roadmap_main.o roadmap.rsc \ + roadmap_build.o \ $(TOP)/libguiroadmap.a libwroadmap.a $(LIBS) \ libwroadmap.a -lcommctrl -laygshell -lws2 |