![]() |
|
Programming C, bash, Python, Perl, PHP, Java, you name it. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Using BSD Make (specifically, I'm doing this on OpenBSD) I can use the wonderful incantation:
Code:
.SUFFIXES: .o .cc .cc.o: g++ -g -Wall -c ${.IMPSRC} I realize that normally alpha.h depends on beta.h and so forth, and that these special dependencies can be done the "normal" way with Make, so I am curious about the generic case that every .cc (C++ source) file depends on the .hh (C++ header) file of the same name. Thanks for any tips.
__________________
How many shells could Shell sort sort if Shell sort could sort shells? |
|
|||
![]()
Thanks for the reply. Here's an example:
Code:
*.cc: *.hh Also, I should note this isn't for anything in Ports or the rest of the system, but I'll check out the system make files for ideas.
__________________
How many shells could Shell sort sort if Shell sort could sort shells? |
|
||||
![]() Quote:
Code:
.SUFFIXES: .o .cc .cc.o: g++ -g -Wall -c ${.IMPSRC} *.o: $*.hh Last edited by ephemera; 25th November 2008 at 04:38 PM. |
![]() |
Tags |
make |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
cannot open cloning pty | l2fl2f | FreeBSD General | 2 | 10th December 2008 07:30 PM |
Apache: problem with rewritten content-type header | Malakim | General software and network | 2 | 3rd December 2008 07:51 PM |
How to handle conflicting port dependencies? | Aux | FreeBSD Ports and Packages | 2 | 29th September 2008 06:44 AM |
how to check package dependencies? | bsdnewbie999 | OpenBSD Packages and Ports | 5 | 31st July 2008 04:05 AM |
Missing header file(s) in source tree | phatfish | FreeBSD Installation and Upgrading | 8 | 4th May 2008 08:40 PM |