The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNIX System Call for creating process chanikya UNIX for Dummies Questions & Answers 2 04-16-2008 04:36 PM
Shell script for Creating Directory with name as system date aarora_98 Shell Programming and Scripting 7 12-07-2005 08:14 AM
vi calling template Euler04 UNIX for Dummies Questions & Answers 1 11-22-2005 10:06 AM
About template constraints sarwan High Level Programming 0 11-21-2005 04:11 AM
substitution of variable in template supercbw Shell Programming and Scripting 1 04-11-2002 01:58 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 09-25-2002
CaptainRo CaptainRo is offline
Registered User
  
 

Join Date: Sep 2002
Location: MN
Posts: 1
Question Creating new system Makefile template

I am attempting to set-up a Makefile to use for a new system on a Sun Unix machine.

I am new to creating Makefiles. I am trying to start simply by compiling a program. I am getting the following error message but an uncertain what 'Error Code 1' is. Is there a web site with Error Codes somewhere?

Here is the full output from my Makefile execution:
(star9)(abi)-->/apps/abi/src> abimake abi1000
make -f /apps/abi/tools/abirule.mk "HDRDIR = /apps/abi/include" "DEBUGGER = -g" "USERID = /" \
"OBJECTS= \
# "/apps/abi/bin/abilib.o \
abi1000 > ./abimake.log 2>&1; \
rm abi1000.o ;
*** Error code 1
make: Fatal error: Command failed for target `abi1000'

NOTE: to try to simplify the process I wanted to comment out building the library as I keep getting the message: 'make: Fatal error: Don't know how to make target `/apps/abi/bin/abilib.o''. So I thought, tackle one issues at a time.

Anyway, this is my Makefile as it is now:
.SUFFIXES:

ABI_HOME = /apps/abi
MAKEPC = $(ABI_HOME)/src/abirule.mk
OBJDIR = $(ABI_HOME)/src
HDRDIR = $(ABI_HOME)/src
PRGOBJ = .
PRGHDR = .
LOG = ./abimake.log

USERID =/ # Default userid for pcc command unless passed from command line
DEBUGGER= -g # Default debugger for cc command unless passed from command line

STDPARMS = "HDRDIR = $(HDRDIR)" "DEBUGGER = $(DEBUGGER)" "USERID = $(USERID)"

SENDTOLOG = > $(LOG) 2>&1

abi1000 : \
<spaces> $(PRGHDR)/abi1000.h \
<spaces> abi1000.pc
<tab> $(MAKE) $(MAKEFLAGS) -f $(MAKEPC) $(STDPARMS) \
<tab> "OBJECTS= \
<tab> $@ $(SENDTOLOG); \
<tab> rm abi1000.o ;


Any ideas on what the error message is resulting from?



 

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:08 AM.


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