Makefile

Hi,

As suggested by some of the members in this forum, I have started making templates completely in header files. But now when I am making rules for header files, it is more clumsy.

For e.g.

1
2
3
4
5
6
File:temp.h
#include "abc.h"
template<typename T>class temp
{

}


so if I write

main: temp.h
g++ main.cpp -o main

temp.h: abc.h -------->Is it really imp?

I am not sure. But is the line above needed. As far as I can see, we need not mention it. Can someone confirm it?
Well, I am not sure about it either. But what I am sure about is, that you should specify all the dependencies for each file in your make file for proper compilation.

Huh?
Topic archived. No new replies allowed.