09-05-2015
Makefiles are usually used to create object files; not source files. And, I don't see any rules in your makefile that make any attempt to create a source file.
What source files are you trying to create with your makefile?
What command line did you use when you invoked make?
What output did you get when you ran make?
What files were you hoping your invocation of make would produce?
Did you make any changes to any of your source files from the way you described them in post #1 in this thread (such as adding a definition of the function main() in ac.cc or pg.cc)?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have concatenated 2 makefiles, to produce 1 however it is not running all of the code, producing a fatal error: symbol referencing errors. No output written. Can anybody please help? (4 Replies)
Discussion started by: Dan Rooney
4 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to install Gandalf, a computer vision and numerical library (http://gandalf-library.sourceforge.net/). I am using Cygwin on a Windows machine and have tried everything to get this to build, but to no avail.
Gcc, make, and libtool are all included in my Cygwin install. I... (1 Reply)
Discussion started by: justinh
1 Replies
3. UNIX for Dummies Questions & Answers
I need to develop a makefile that spans across directories. For example, let's say i have an upper level directory (main) and about 2 subdirectories. I want my .cpp files and .o files to be in one subdirectory. I want my .a files to be in the other subdirectory. The .a files are made up of the... (0 Replies)
Discussion started by: benjie_asu
0 Replies
4. Shell Programming and Scripting
for example in my make file im building path from env variables and string but need to see what is did
what is the best way to print the result?
say I have in my Makefile :
exec_prefix = $(RUN_ENV_LOCAL)/apache
and I will like to print the exec_prefix value , how can it be done ? (1 Reply)
Discussion started by: umen
1 Replies
5. UNIX for Advanced & Expert Users
Solved........ (0 Replies)
Discussion started by: klam
0 Replies
6. UNIX for Dummies Questions & Answers
This query is regarding the makefiles of linux kernel modules.
I saw at some sites on net it is suggesting to include the following path:
KERNEL_SOURCE := /usr/src/linux...
while at some places it is askibg to include /lib/modules path:
KERNEL_SOURCE := /lib/modules/2.6.27-7-generic/build... (0 Replies)
Discussion started by: rupeshkp728
0 Replies
7. Programming
I have several programs in several directories and want to use make to build the executables. What I have done is to put the main programs in their own directory together with a makefile to build the program. Then I am thinking of having another makefile residing in the directory above so I can run... (1 Reply)
Discussion started by: kristinu
1 Replies
8. Shell Programming and Scripting
I have a make file and want to write some information and am doing
@echo " RAYPK_LIBSRC = $(RAYPK_LIBSRC)"
The line of code produces
RAYPK_LIBSRC = ./source/library/raypk/time.f ./source/library/raypk/model.f ./source/library/raypk/tomo.f ./source/library/raypk/plt.f... (1 Reply)
Discussion started by: kristinu
1 Replies
9. Shell Programming and Scripting
I have several makefiles to build various programs in a software suite (currently 4 programs). I want to create a main Makefile so that I can build everything I need.
Unsure on the way I should proceed, for example using
include fdtc.mk
or calling
$(MAKE) -f ./mk/Makefile nfdtc
Here... (15 Replies)
Discussion started by: kristinu
15 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I was going through some makefiles where I saw occurrences of explib_subdirs and expinc_subdirs, which I could not understand.
Exporting libs to subdirs ? Exporting include files to specified subdirs ? When do we need to do that ?
What I could understand is, for a build, I would... (4 Replies)
Discussion started by: alltaken
4 Replies
ypmake(1M) System Administration Commands ypmake(1M)
NAME
ypmake - rebuild NIS database
SYNOPSIS
cd /var/yp ; make [map]
DESCRIPTION
The file called Makefile in /var/yp is used by make(1S) to build the Network Information Service (NIS) database. With no arguments, make
creates dbm databases for any NIS maps that are out-of-date, and then executes yppush(1M) to notify slave databases that there has been a
change.
If you supply a map on the command line, make will update that map only. Typing make passwd will create and yppush the password database
(assuming it is out of date). Likewise, make ipnodes and make networks will create and yppush the ipnodes and network files, $(INET-
DIR)/ipnodes and $(DIR)/networks.
There are four special variables used by make: DIR, which gives the directory of the source files; NOPUSH, which when non-null inhibits
doing a yppush of the new database files; INETDIR, which gives the directory of the ipnodes source file; and DOM, which is used to con-
struct a domain other than the master's default domain. The default for DIR is /etc, and the default for INETDIR is /etc/inet. The default
for NOPUSH is the null string.
Refer to ypfiles(4) and ypserv(1M) for an overview of the NIS service.
If a NIS to LDAP (N2L) configuration file, /var/yp/NISLDAPmapping, is present, the NIS server components run in N2L mode. In N2L mode, the
server components use a new set of map files with an LDAP-prefix, based on the LDAP DIT. In N2L mode, authoritative NIS information is
obtained from the DIT. The NIS source files and ypmake have no role, and they should not be used. If ypmake is accidentally run, then the
server components will detect this, and will log a warning message. For additional information, see ypfiles(4).
FILES
/var/yp Directory containing NIS configuration files.
/etc/inet/hosts System hosts file.
/etc/inet Default directory for ipnodes source file.
/etc Default directory for source files other than ipnodes.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWypu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
make(1S), nis+(1), makedbm(1M), rpc.nisd(1M), ypbind(1M), yppush(1M), ypserv(1M), ypclnt(3NSL), NISLDAPmapping(4), ipnodes(4), ypfiles(4),
ypserv(4)
NOTES
The NIS makefile is only used when running the ypserv(1M) server to provide NIS services. If these are being provided by the NIS+
server running in NIS compatibility mode, see rpc.nisd(1M); this makefile is not relevant. See ypfiles(4) for more details.
The Network Information Service (NIS) was formerly known as Sun Yellow Pages (YP). The functionality of the two remains the same. Only the
name has changed. The name Yellow Pages is a registered trademark in the United Kingdom of British Telecommunications plc, and may not be
used without permission.
SunOS 5.10 19 Mar 2003 ypmake(1M)