The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Porting of Shell to AIX dhanamurthy High Level Programming 5 03-07-2007 10:37 AM
porting areef4u UNIX for Advanced & Expert Users 10 08-03-2006 08:32 AM
how to capture compilation errors with Makfile umen Shell Programming and Scripting 2 02-07-2006 10:34 AM
Porting tools veeru554 High Level Programming 5 12-09-2005 01:47 PM
Porting C codes from HP-UX to AIX Sinbad AIX 0 01-27-2005 12:48 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 10-29-2008
angeloberardi angeloberardi is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
Makfile porting

I am trying to port to HP-UX 11i v3 system an application in C++ language written for a Tru64 Unix V5.
I am trying to execute on HP-UX 11i v3 a Makefile written for
Tru64 Unix V5 with this code:

$(TARGET_MORE): $(DEPEND_FILE) $(SOURCE_MORE.cc) $(LIBS)
@for i in $(TARGET_MORE); do \
$(LINK_MORE); \
done

The for instruction and the instrutions under have a tab on the front.
When I execute make I have a syntax error on the line of the for instruction. This code works properly on Tru64 Unix V5
I tested the code changing it this way

$(TARGET_MORE): $(DEPEND_FILE) $(SOURCE_MORE.cc) $(LIBS)
for var in one two three ; do
echo $var
done

and I still have a syntax error on the line of the for code.
In the second example the for cycle works properly if I execute it on the shell out of the Makefile.

In all the Makefile this is the first point where there is the for instruction.
It seems that it dosen't recognize the for instruction.
In the HP-UX 11i v3 I am using the make in /usr/bin/make. I have used the the gcc compiler, the korn shell, the posix shell and the problem didn't change. Which setting must I do so this Makefile works on HP-UX 11i v3.

I thank you in advance.
Angelo Berardi
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0