mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
build: change checkheaders to use regular build rules
Many compilers need special flags to compile *.h files as regular source code, if they will do so at all. Rather than hoping all compilers will have such a flag and adding mappings for it, create wrapper .c files for test building single headers. This allows using the regular rule for compiling C files without the need for special flags, and it also provides proper dependency tracking for these objects. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
00cb52c65c
commit
dfd9159f3d
4 changed files with 9 additions and 7 deletions
4
Makefile
4
Makefile
|
|
@ -45,8 +45,8 @@ COMPILE_S = $(call COMPILE,AS)
|
|||
%.o: %.S
|
||||
$(COMPILE_S)
|
||||
|
||||
%.ho: %.h
|
||||
$(CC) $(CCFLAGS) -c $(CC_O) -x c $<
|
||||
%.h.c:
|
||||
$(Q)echo '#include "$*.h"' >$@
|
||||
|
||||
%.ver: %.v
|
||||
$(Q)sed 's/$$MAJOR/$($(basename $(@F))_VERSION_MAJOR)/' $^ > $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue