define macro in makefile for visual studio C++ build -


i have 2 exe use same .dll through explicit linking, both specific work, differentiated through macros. have created make file build dll, how define macro in makefile, can generate respective dll use. while build on windows, , using visual studio compiler, input appreciable.

when run make, can set macros on command-line. these macros become read-only during make run (in other words, override assignments may attempt inside makefile).

so, create make-based visualstudio project. debug configuration ensure runs

make target=debug 

and release configuration

make target=release 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -