![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|