[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | USG buildhelp questions/answers |
|
Moderator: | SMURF::FILTER |
|
Created: | Mon Apr 26 1993 |
Last Modified: | Mon Jan 20 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2763 |
Total number of notes: | 5802 |
1717.0. "How do I include cc flags in build cmd line" by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Thu Aug 17 1995 17:27
Date Of Receipt: 17-AUG-1995 16:09:39.86
From: SMURF::GURU::goodwin "DICK GOODWIN USG"
To: buildhelp@dec:.zko.guru
CC:
Subj: How do I include cc flags in build cmd line
Hi,
Can you tell me the correct syntax to make this work?
If I have a file a.c, for example, which looks like:
#ifdef FLAG
#define A 1
#else
#define A 0
#endif
main(){
printf("A=%d\n", A);
}
$ make a CFLAGS=-DFLAG
cc -DFLAG a.c -o a
$ a
A=1
That works.
But if I want to "build" such a file in a sandbox, how do
I specify the -DFLAG option in the build command line?
Thanks,
Dick Goodwin
T.R | Title | User | Personal Name | Date | Lines
|
---|