![]() |
GNU Make question
I thought this was obvious...but meh
Here is what I want: I simply want to set a macro when the target 'server' is being build. That way a clean ded server can be build. Here is what I have now, and doesn't work :-/ Code:
server: $(SERVER_OBJS) Can somebody please help me? :) |
Re: GNU Make question
Are you using the right macro?
Because this works for me... dtest.c Code:
#include <stdio.h> Code:
CC=gcc |
Re: GNU Make question
OK got it to work, thanks :)
I guess its the way of compiling...it works if I do it simulair to yours: Code:
server: |
Re: GNU Make question
Not entirely sure if this is right...but I think the defines really only work compiling the source files direct, not on the object files - though header files are sometimes used when linking, so it could have an effect there.
I could be completely wrong - someone please correct me if I am! |
Re: GNU Make question
I'm not sure about linking header files(never saw that happen), but you're right about the other part. Unfortunaly this way of compiling doesn't leave any .o files and thus you have to recompile everything each time.
|
All times are GMT +2. The time now is 18:20. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.