Operating System - HP-UX
1846559 Members
1399 Online
110256 Solutions
New Discussion

Re: Compilation Using aCC

 
SOLVED
Go to solution
Prashun Gupta
Advisor

Compilation Using aCC

We have newly created an environment for aCC and are using nmake ,a compilation tool. When we are compiling the program through nmake it is giving a message
make: don't know how to make
Can you all suggest some points
Thanks
Prashun
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Compilation Using aCC

I'm guessing that you makefile doesn't know how to process a suffix like .cpp or .C++.
If you attach your makefile and the error we can probably help.
If it ain't broke, I can fix that.
Prashun Gupta
Advisor

Re: Compilation Using aCC

Hello
This is my makefile

include $(VROOT)/ancm/cilcpprules.mk

/* in HPUX10.20 C++ compiler, if a compiling processor is PA-RISC 2.0
we must use +DAportable to insure a compatibility, otherwise,
we can't run the binary on PA-RISC 1.1 like WS or other I series */

if "$(HPPA)" != "2.0"
CCFLAGS = -gdem -g
else
CCFLAGS += -D$(CUST)
end

COMMON_src=sched.C schedDBObj.C setConfigReqLite_v.C

.SOURCE.h : include $(ALLINCLS_NOACO)

.SOURCE.C : src

sched :: $(COMMON_SRC) ../lib/libipclink.a ../lib/libmsgifc.a $(ALLLIBS_NOACO)


A. Clay Stephenson
Acclaimed Contributor

Re: Compilation Using aCC

Okay, next step is to do a make -p and carefully examine all the suffix's and rules
to see if they are correct. If you have changed the makefile, make absolutely certain that the action lines beneath a target (possibly in your include file as well) always start with a single
e.g.
$(PROG) : $(OBJECTS) $(LIBES1)
$(CC) $(LDFLAGS) $(OBJECTS) -L$(LDIR) -o $(PROG)
strip $(PROG).

I seen one space in the action line kill an otherwise perfectly good make file.

Hope some of this helps...
If it ain't broke, I can fix that.