> OK.
> I used an existing directory as a model and I now have
modules/pam_dissen
> as a
> directory with what appears to be the appropriate make files.
> What make command can I issue to compile pam_dissen.c and generate
> pam_dissen.so ?

Test it with 'make -n' in the same directory as your files. -n says do
the evaluation of what needs to be done then tell me, but don't actually
do it.  If it says it's going to do what you expect, a plain 'make'
should work. 

> >From which directory should I issue the make command?
> 
> I tried
> 
>    make modules/pam_dissen
> 
> from the
> 
> Linux-PAM-0.99.9.0
> 
> directory, with result
> 
> make: Nothing to be done for `modules/pam_dissen'.

Yes, and it's right. Unless told otherwise, make assumes you are giving
it a target string to find *in the makefile in the current directory*.
Use 'make -f modules/pam_dissen/Makefile pam_dissen' (assuming the rule
in your makefile in modules/pam_dissen is called 'pam_dissen'). If you
omit it, it will build the default target for that makefile.

So, first, do the make from the directory containing the source. If you
need to integrate it into the larger build, then you'll need to modify
the makefiles at the higher levels in the directory tree. 

There's an excellent tutorial on the intricacies of make in the BSD 4.3
System Administrators Guide (probably available in your local public
library), or the OReilly book on make is also good. This online guide: 

http://www.eng.hawaii.edu/Tutor/Make/index.html

is also a good start. 



> 
> --
> Binyamin Dissen <[EMAIL PROTECTED]>
> http://www.dissensoftware.com
> 
> Director, Dissen Software, Bar & Grill - Israel
> 
> 
> Should you use the mailblocks package and expect a response from me,
> you should preauthorize the dissensoftware.com domain.
> 
> I very rarely bother responding to challenge/response systems,
> especially those from irresponsible companies.
> 
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [EMAIL PROTECTED] with the message: INFO LINUX-390
or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to