Kevin Meredith
Kevin Meredith

Reputation: 41909

Making sense of makefile flags

Input: makefile that doesn't point to a C# solution
Output: new makefile, solution and project (.csproj) -> the makefile points to a solution, which points to a project

There are many makefile flags, such as:

# sample.makefile
# author: me

LIBRARY_A = YES
LIBRARY_B = YES
LIBRARY_C = YES

These flags, I believe, point to .def's or .dll's. My script will read a makefile flag, then add the correct XML tags within the csproj file to capture the project references. Two questions that I kindly request your help with:

1) how do I figure out what these flags point to?
2) is it OK to just include all of the libraries, i.e. skip the work of figuring out which libraries need to be included?

Upvotes: 0

Views: 807

Answers (1)

user562374
user562374

Reputation: 3897

1. Those are not just some flags, those are variables. Whenever ${LIBRARY_A} for example is used, the value is expanded to its associated value.

all:
        echo You chose to set LIBRARY_A to ${LIBRARY_A}

2. To answer that, the documentation of the project should be consulted.

Upvotes: 1

Related Questions