Operating System - Linux
1753482 Members
4030 Online
108794 Solutions
New Discussion юеВ

make command on HPUX 11.11

 
SOLVED
Go to solution
Fabrizio Maggioni_2
Super Advisor

make command on HPUX 11.11

Hi,

I am using make command on HPUX 11.11;i run it
with these argument:

make -f /home/oracle/sh.mk extproc_nocallback SHARED_LIBNAME=$ORACLE_HOME/lib/shell.so OBJS=shell.o

but i got this error:

Make: Must be a separator on rules line 4.Stop

This is my makefile:

$ cat sh.mk
#include
#include
#include
void sh(char *);
void sh(char *cmd)
{
int num;
num = system(cmd);
}

I already tried with tab space at the beginning of each command line and "\" at the end of each command line, but the error persist.

Do you have any suggestion?

Thanks a Lot,
Fabrizio
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: make command on HPUX 11.11

Yes, I have a suggestion. Supply a real makefile rather than C source code. Your sh.mk is a C source file, (if not a very good one). A makefile consists of a number of dependency rules and then the instructions to act on these dependencies.

In your case, you should rename your sh.mk to sh.c and then:
cc -c sh.c
which should produce a sh.o object file.
If it ain't broke, I can fix that.
Arunvijai_4
Honored Contributor

Re: make command on HPUX 11.11

Hi Fabrizio,

"make" files are totally different from what a norml C Code looks like. It has its own literature and syntax. Check this for more information: http://www.mtsu.edu/~csdept/FacilitiesAndResources/make.htm

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"