Sponsored Content
Homework and Emergencies Homework & Coursework Questions Create Makefile from source files Post 302954247 by Don Cragun on Saturday 5th of September 2015 08:38:06 PM
Old 09-05-2015
The following:
Code:
gq.o: gq.cc ac.h -I/assign1/includes bb.h	
	g++ -c gq.cc

says that the file gq.o needs to be brought up-to-date if any of the four files:
Code:
	gq.cc ac.h -I/assign1/includes bb.h

in the current working directory are newer than gq.o or if any of those files do not exist. Neither of the last two files in that list exist in the current directory, and you have not supplied any rules that tell make how to build those files. The third file in that list looks like it might be an option to gcc to tell it how to find bb.h while it is compiling gq.cc to build gq.o, but it does not tell make how to find bb.h. (But the pathname you specified for bb.h [/home/turing/z1755294/assign1/assign1/includes] does not seem to be what is specified by -I/asign1/includes.)

If you are sitting in the directory /home/turing/z1755294/assign1/assign1 when you run make and the files gq.cc and ac.h are in that directory, what pathnames (absolute or relative) can be used to enable make to find the file bb.h?
 

10 More Discussions You Might Find Interesting

1. Programming

about create Makefile

hello! i want to create a Makefile on the freebsd 4.5,so i vi the hello.c #include int main(int argc, char** argv) { printf(''Hello, GNU!\n''); return 0; } #autoscan #cp configure.scan configure.in #vi configure.in modify:AC_OUTPUT AC_OUTPUT(Makefile) #aclocal #autoconf... (0 Replies)
Discussion started by: mzp
0 Replies

2. Programming

Makefile compilation Error -Unable to create executable

Hi , While trying to compile a PRO*C code on unix using makefile i get the following errors. i am now working on a 10g migration (from 8i) ... these makefile perfectly work in previous version. ld: fatal: file... (7 Replies)
Discussion started by: sivalives
7 Replies

3. UNIX for Dummies Questions & Answers

create raidctl mirror with mounted source parition

I am mirroring a single partition drive with raidctl. The source partition was mounted when I created the mirror with raidctl -c c1t1d0 c1t3d0. The source disk was defined with s2 and s6 only. I didn't think to umount it first. Is there a problem with that? (2 Replies)
Discussion started by: csgonan
2 Replies

4. Shell Programming and Scripting

Makefile cant create new install path

..... (2 Replies)
Discussion started by: mercury
2 Replies

5. Shell Programming and Scripting

ksh script to create a generic csv file from different source formats

Hi all, I have a requirement to create a "superset" file out of a number of different sources with some different and some same columns. We intend to have a manually updateable SuperSetCols.csv which would look like "ColA","ColB","ColC","ColD","ColE","ColF","ColG" so someday we may add... (3 Replies)
Discussion started by: Leedor
3 Replies

6. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

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: Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Discussion started by: Tatl
1 Replies

7. Shell Programming and Scripting

automake does not create Makefile.in

hi all, I have written a simple C program hello.c and a Makefile.ac but when i try to run automake it does not create Makefile.in hence I am not able to run ./configure command in my directory. Following are the containts of my prog. hello.c -------- Code: #include<stdio.h> main() {... (0 Replies)
Discussion started by: useless79
0 Replies

8. Linux

Create a bootable PXE image from build kernel source code

Hi, Can i just ask how I can create a bootable PXE image from the built kernel source. What files do I need to get? Thanks! (1 Reply)
Discussion started by: h0ujun
1 Replies

9. UNIX for Dummies Questions & Answers

Create a tgz from source FreeBSD

Hello, i'm having a problem here with FreeBSD 9.2 . I've created a directory and downloaded the latest ntp-4.2.8p1-beta2 from ntp.org. Untar then into the directory and then ./configure all went OK. Then i had to modify some parameters in the config.h created with ./configure . Then make... (2 Replies)
Discussion started by: Board27
2 Replies

10. Programming

Makefile instructions to create directories (CentOS7 , GNU Make 3.82)

Hello, My makefiles are set up to generate an environment specific build directory based on the local configuration and some values passed to make. It generally looks like, # compilers, may be passed to make CC++ = g++ FCOMP = gfortran # version of program, may be passed to make ver =... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
ml-makedepend(1)					      General Commands Manual						  ml-makedepend(1)

NAME
ml-makedepend - list files a ML program depends upon SYNOPSIS
ml-makedepend [ DU-options ] [ -n ] [ -f makefile ] project.cm target ml-makedepend [ DU-options ] [ -a arch ] [ -o os ] [ -f makefile ] project.cm target DESCRIPTION
This manual page documents briefly the ml-makedepend command. This manual page was written for the Debian distribution because the origi- nal program does not have a manual page. The ml-makedepend script is part of the SML/NJ CM (Compilation and Library Manager) that is used to generate a list of files that a ML program depends on for use by make. OPTIONS
A summary of options is included below. -n ml-makedepend usually uses the make variables $(ARCH) and $(OPSYS) in the filenames for the Makefile. This option disables this feature. -a arch Use arch in place of $(ARCH). -o os Use os in place of $(OPSYS). -f makefile Name of the makefile to be used rather than the default Makefile. -Dname=value Set CM variable to given value. -Dname Set CM variable to 1. -Uname Unset CM variable. SEE ALSO
sml(1), ml-lex(1), ml-build(1), ml-yacc(1). The programs are documented fully by CM: The SML/NJ Compilation and Library Manager, User Manual, Matthias Blume, which is available via <http://cm.bell-labs.com/cm/cs/what/smlnj/doc/CM/new.pdf>. AUTHOR
This manual page was written by Aaron Matthew Read <amread@nyx.net>, for the Debian GNU/Linux system (but may be used by others). October 25, 2002 ml-makedepend(1)
All times are GMT -4. The time now is 02:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy