[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FW: platform identification
From: |
Nagaraj, Manjunath |
Subject: |
FW: platform identification |
Date: |
Wed, 13 Mar 2002 01:17:41 -0600 |
Hi,
Shell should be given this way (without commas).
OS := $(shell uname)
And include a target.
For ex:
all:
echo $(OS)
Thanks,
Manju
-----Original Message-----
From: Anil Kumar Kommuri [mailto:address@hidden
Sent: Wednesday, March 13, 2002 12:18 PM
To: address@hidden; address@hidden
Subject: RE: platform identification
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
_______________________________________________
Help-make mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-make