Creating new system Makefile template

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Creating new system Makefile template
# 1  
Old 09-25-2002
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/ "HDRDIR = /apps/abi/include" "DEBUGGER = -g" "USERID = /" \
# "/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:

ABI_HOME = /apps/abi
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


SENDTOLOG = > $(LOG) 2>&1

abi1000 : \
<spaces> $(PRGHDR)/abi1000.h \
<spaces> abi1000.pc
<tab> "OBJECTS= \
<tab> $@ $(SENDTOLOG); \
<tab> rm abi1000.o ;

Any ideas on what the error message is resulting from?

Smilie Smilie Smilie
# 2  
Old 09-26-2002
The make utility

It may be that it doesn't see the file due to path reasons (see the link posted above- search for your error).

The man page shows that the error from shell commands comes back as your posted error - Could not find a list of error codes for these errors (but I'm sure it's out there...just can't find it)
man page for make -s 1s
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating verbal structures from a dictionary and a template

My main aim here is to create a database of verbs in a language to Hindi. The output if it works well will be put up on a University site for researchers to use for Machine Translation. This because one of the main weaknesses of MT is in the area of verbs. Sorry for the long post but the problem... (4 Replies)
Discussion started by: gimley
4 Replies

2. Solaris

Creating a VMware template

Hello, I am creating a Solaris 11 template on my ESXI host. I would like each VM that is deployed from the template to have its own unique host fingerprint. With Linux, I simply delete host keys, which causes new keys to be generated at bootup (new VM deployment) Is there a way to do this... (1 Reply)
Discussion started by: firefoxx04
1 Replies

3. Programming

C++: Creating Matrix template using vector

I want to create a Matrix template that uses vector. For the time being I want to create the following operations. I need setting the implementation for the operations. Maybe I do not have to use a pointer either. template <class T> class Matrix { protected: typedef vector<T>* ... (2 Replies)
Discussion started by: kristinu
2 Replies

4. Shell Programming and Scripting

Question in creating targets in makefile

Hi, I have a question related to makefile. I'm new to makefile and I'm in the process of writing a makefile for my RBT build. I have multiple source files and when I compile them I will get multiple object files (one object file for each source file). I'm having problem in creating a target for... (1 Reply)
Discussion started by: Anand Venkatesa
1 Replies

5. Homework & Coursework Questions

Creating a .profile, displaying system variables, and creating an alias

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Here is what I am supposed to do, word for word from my assignment page: 1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies

6. Shell Programming and Scripting

Creating a larger .xml file from a template(sample file)

Dear All, I have a template xml file like below. ....Some---Header....... <SignalPreference> ... <SignalName>STRING</SignalName> ... </SignalPreference> ......Some formatting text....... <SignalPreference> ......... ... (3 Replies)
Discussion started by: ks_reddy
3 Replies

7. Programming

Problem creating a makefile

hello, I'm trying to create a makefile to run multiple c files. I am able to run one c file only with the code I have when I tried to run 2 or more c files I'm not able. here is my code # $Source: /home/hectormasencio/make/Makefile,v $ # $Date: 2012/11/27 11:35:30 $ CC= gcc OBJS= temp.o... (3 Replies)
Discussion started by: Hector M.
3 Replies

8. UNIX for Dummies Questions & Answers

Basic System Info Template

If your boss ask you to create a template for all UNIX systems. Max 10 questions of the system. What would you put down? The system can be any UNIX flavor. Some examples: 1. system name 2. OS 3. ETC What would be for you the most important and relevants. (2 Replies)
Discussion started by: 300zxmuro
2 Replies

9. UNIX for Advanced & Expert Users

Help in creating a makefile

Hi, I wanted to know whether there is any way to specify in a makefile how to compile sources from a directory directly by giving the directory path name instead of mentioning each and every source file name. Regards, Anil (1 Reply)
Discussion started by: anil_lami
1 Replies

10. Solaris

System Libraries used by makefile

Dear All I am looking for all the system libraries that are accessed by my application Build script i.e. make which in turn will processes makefile. Is there any specific command from which i can find all the system libraries used by my build script. Cheers, Ankur (1 Reply)
Discussion started by: sharmaankur85
1 Replies
Login or Register to Ask a Question