Mercurial > hg > th-libs
changeset 417:137a3cca9a9c
Fix build process for parallel make.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 09 Mar 2016 13:42:24 +0200 |
parents | 2503cd600c8f |
children | 3c1bd6c55e00 |
files | Makefile.gen |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.gen Wed Mar 09 13:23:24 2016 +0200 +++ b/Makefile.gen Wed Mar 09 13:42:24 2016 +0200 @@ -38,17 +38,14 @@ $(BINPATH): $(MKDIR_P) $@ -$(OBJPATH)%.o: $(THLIBS)%.c $(THLIBS)%.h - $(CC) $(CFLAGS) -c -o $@ $< - -$(OBJPATH)%.o: %.c %.h +$(OBJPATH)%.o: %.c %.h $(THLIBS_DEP) $(CC) $(CFLAGS) -c -o $@ $< -I$(THLIBS) -$(OBJPATH)%.o: %.c +$(OBJPATH)%.o: %.c $(THLIBS_DEP) $(CC) $(CFLAGS) -c -o $@ $< -I$(THLIBS) -$(THLIBS_A): $(THLIBS_DEP) $(addprefix $(OBJPATH),$(THLIBS_OBJ)) +$(THLIBS_A): $(addprefix $(OBJPATH),$(THLIBS_OBJ)) $(AR) cru $@ $(addprefix $(OBJPATH),$(THLIBS_OBJ)) $(RANLIB) $@