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:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 12:18 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 11:51 AM
To: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make