How to add ifdef condition in Makefile

How to add ifdef condition in Makefile

Post by shara » Sat, 01 Mar 2003 20:39:41



 Hi,
    can anybody tell me how to use  ifdef construct in Makefile on aix.

I tried with the following
.ifdef VAR
  VAR1 = foo
.endif
   It fails with the error Make : 1254-055 Dependency line needs colon or
double colon operator.

- Sharad

 
 
 

1. #ifdef directives in makefile

Hi,

I'm using makefiles for compiling my java codes. In these makefiles, I'm
using CFLAGS to pass the requisite variable definitions. But even then
#ifdef directive does not seems to be picking up the variable as being
defined.

Any pointers ?
Arun
--
=============================================
There is only one me, I must live myself!
There is only one today, I must live itself!
=============================================
http://members.tripod.com/~apgupta/index.html
=============================================

2. USB-MOUSE???

3. makefile question: how to prevent space added when adding variables

4. user login error

5. Perl script to add "#ifdef DEBUG" wrappers to C source

6. XDM Funks with colors in color_xterm?

7. make: conditions in the Makefile

8. Sound Blaster 16

9. If (condition) in makefile

10. Conditions in makefile

11. Problem with condition in makefile...

12. #ifdef __x86_64__'s added where needed

13. Errors compiling Wingz 1.4 Add-ins (Linux 1.3.99, GCC 2.6)