Quote:
but my makefile recompiles everything everytime i call it
|
because that's what you are specifying
firstly, you don't need to specify the CC behaviour, it's built in.
Also your targets have no dependencies.
start with this, see how simple it can be:
Code:
all:daemon server
daemon: daemon.o
server:server.o
you don't need to redifine CC stuff, there are anough flags
for you to use, eg: $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
make -pns
and grep CC