Dependencies to be specified on binaries (to allow parallel builds)
This commit is contained in:
parent
642c6fb9e3
commit
9884d33eed
@ -29,6 +29,7 @@ ARRAY(Config *, config);
|
|||||||
/* functions */
|
/* functions */
|
||||||
static int _makefile_write(Configure * configure, FILE * fp, configArray * ca,
|
static int _makefile_write(Configure * configure, FILE * fp, configArray * ca,
|
||||||
int from, int to);
|
int from, int to);
|
||||||
|
|
||||||
int makefile(Configure * configure, String const * directory, configArray * ca,
|
int makefile(Configure * configure, String const * directory, configArray * ca,
|
||||||
int from, int to)
|
int from, int to)
|
||||||
|
|
||||||
@ -690,9 +691,12 @@ static int _target_binary(Configure * configure, FILE * fp,
|
|||||||
if(configure->prefs->flags & PREFS_n)
|
if(configure->prefs->flags & PREFS_n)
|
||||||
return 0;
|
return 0;
|
||||||
_target_flags(configure, fp, target);
|
_target_flags(configure, fp, target);
|
||||||
fprintf(fp, "\n%s%s%s%s", target, ": $(", target, "_OBJS)\n");
|
fprintf(fp, "\n%s%s%s%s", target, ": $(", target, "_OBJS)");
|
||||||
fprintf(fp, "%s%s%s%s%s", "\t$(CC) -o ", target, " $(", target, "_OBJS)"
|
/* FIXME change commas to spaces */
|
||||||
" $(LDFLAGSF) $(LDFLAGS)");
|
if((p = config_get(configure->config, target, "depends")) != NULL)
|
||||||
|
fprintf(fp, " %s", p);
|
||||||
|
fprintf(fp, "%s%s%s%s%s", "\n\t$(CC) -o ", target, " $(", target,
|
||||||
|
"_OBJS) $(LDFLAGSF) $(LDFLAGS)");
|
||||||
if((p = config_get(configure->config, target, "ldflags")) != NULL)
|
if((p = config_get(configure->config, target, "ldflags")) != NULL)
|
||||||
fprintf(fp, " %s", p);
|
fprintf(fp, " %s", p);
|
||||||
fputc('\n', fp);
|
fputc('\n', fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user