Fix dependency rules in openjpeg library makefile.

Let the object-files be dependend on the headers, that have to be constructed,
instead of making the source files dependend on them. Fixes #65.
This commit is contained in:
Stefan Kalkowski 2012-01-05 23:32:05 +01:00 committed by Norman Feske
parent 938ffd2bd5
commit 8dd9c48a1a
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ vpath %.c $(OPENJPEG_DIR)
opj_config.h:
$(VERBOSE)echo "#define PACKAGE_VERSION \"1.4.0\"" > $@
$(SRC_C): opj_config.h
$(SRC_C:.c=.o): opj_config.h
clean: clean_opj_config_h
@ -32,7 +32,7 @@ malloc.h:
$(VERBOSE)echo "#include <stdlib.h>" > $@
$(VERBOSE)echo "#undef HAVE_MEMALIGN" >> $@
$(SRC_C): malloc.h
$(SRC_C:.c=.o): malloc.h
clean: clean_malloc_h