Mercurial > libavcodec.hg
comparison Makefile @ 12053:aa0b01031adf libavcodec
tablegen: the executable depends on tablegen headers as well
Make sure that the *_tablegen.h header is listed in the dependencies, but
filter it out in the compile line.
| author | flameeyes |
|---|---|
| date | Fri, 02 Jul 2010 00:30:27 +0000 |
| parents | 1e89f78c8425 |
| children | 82d32c82289d |
comparison
equal
deleted
inserted
replaced
| 12052:c7c32da068ab | 12053:aa0b01031adf |
|---|---|
| 650 $(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=1 | 650 $(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=1 |
| 651 else | 651 else |
| 652 $(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=0 | 652 $(SUBDIR)%_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DCONFIG_SMALL=0 |
| 653 endif | 653 endif |
| 654 | 654 |
| 655 $(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c | 655 $(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)%_tablegen.h $(SUBDIR)tableprint.c |
| 656 $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS) | 656 $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $(filter %.c,$^) $(HOSTLIBS) |
| 657 | 657 |
| 658 $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF) | 658 $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF) |
| 659 $(M)./$< > $@ | 659 $(M)./$< > $@ |
| 660 | 660 |
| 661 ifdef CONFIG_HARDCODED_TABLES | 661 ifdef CONFIG_HARDCODED_TABLES |
