help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: platform identification


From: Anil Kumar Kommuri
Subject: RE: platform identification
Date: Tue, 12 Mar 2002 23:48:02 -0700

Is the following code okay ... it sucks for me.  BTW I am new to
Makefiles.

OS := $(shell, uname)

ifeq ($(OS),SunOS)
LDAPLIBS = -L$(LIBDIR) -l$(LDAPLIB) $(SOLARISLIBS)
endif
ifeq ($(OS),Linux)
LDAPLIBS = -L$(LIBDIR) -l$(LDAPLIB) $(LINUXLIBS)
endif
ifeq ($(OS), AIX)
LDAPLIBS = -L$(LIBDIR) -l$(LDAPLIB) $(AIXLIBS)
endif


thanks
anil.

>>> "Nagaraj, Manjunath" <address@hidden> 13-Mar-02 12:08:05
PM >>>
Hi,
You can use the uname user command with -a option which gives all the
info
about ur system including the platform.
Thanks,
Manju

-----Original Message-----
From: Anil Kumar Kommuri [mailto:address@hidden 
Sent: Wednesday, March 13, 2002 11:51 AM
To: address@hidden 
Subject: platform identification


Hi all,
I was not able to automatically determine which Unix platform we are
running on in the makefile.  Is there's a way to determine?

Kindly let me know.
Thanks in advance
anil.


_______________________________________________
Help-make mailing list
address@hidden 
http://mail.gnu.org/mailman/listinfo/help-make 

_______________________________________________
Help-make mailing list
address@hidden 
http://mail.gnu.org/mailman/listinfo/help-make



reply via email to

[Prev in Thread] Current Thread [Next in Thread]