in VC++ how do I save build information or create a makefile

closed account (oSGzwA7f)
I wrote a program that just changes a very large (1gb) delimited file into a sql statement. When written in gcc using mingw with an -03 optimization the program took 53 minutes to run (way too long).

I compiled the same program using VC++ and a /02 optimization the program took 6 minutes to run. Six minutes is acceptable for me. My problem is how to record my work incase I have to modify this program in the future.

With gcc I just store the source files and headers with a makefile in a directory and all build information is in one place.

How do I do this with VC++. How would I even figure out what command line option where used if wanted to create a makefile?
closed account (oSGzwA7f)
I wrote this makefile in nmake; if possible I would like some suggestion or criticism.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
INCLUDE="C:\Program Files\Microsoft Visual Studio 12.0\VC\include"
CXXFLAGS=/W1 /EHsc -I$(INCLUDE)
OP=/O2 /Ob2 /Oi /Ot /Oy- /GL
LIB="C:\Program Files\Microsoft Visual Studio 12.0\VC\lib"
LIB2="C:\Program Files\Windows Kits\8.1\Lib\winv6.3\um\x86"
LINKFLAGS=/link /LTCG /LIBPATH:$(LIB) /LIBPATH:$(LIB2)
APP=edp_08
$(APP):main.obj rec.obj 
	cl /Fe$(APP).exe main.obj rec.obj $(LINKFLAGS) 
main.obj:main.cpp rec.h testtime.h
	cl $(CXXFLAGS) $(OP) /c main.cpp
rec.obj:rec.cpp rec.h 
	cl $(CXXFLAGS) $(OP) /c rec.cpp
clean:
	del /Q *.obj 
clean_all:
	del /Q *.obj $(APP).exe
Topic archived. No new replies allowed.