mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Automatic generation of build dependencies
This commit is contained in:
parent
7897f7d5cd
commit
29c93d8f3f
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -10,3 +10,4 @@
|
|||
# Other files
|
||||
*.exe
|
||||
*.o
|
||||
*.d
|
||||
|
|
|
@ -54,6 +54,8 @@ OBJS = interface_main.o encmain.o bitstream.o cabac.o config.o context.o encoder
|
|||
PROG = ./kvazaar
|
||||
PROGS = $(PROG)
|
||||
|
||||
DEPS = $(OBJS:.o=.d)
|
||||
|
||||
all: $(PROGS)
|
||||
.PHONY: all clean
|
||||
|
||||
|
@ -66,5 +68,10 @@ cpu.o: x86/cpu.asm
|
|||
%.o: %.c
|
||||
$(CC) $(CCFLAGS) -c $< -o $@
|
||||
|
||||
%.d: %.c
|
||||
$(CC) $(CCFLAGS) -MF"$@" -MG -MM -MP -MT"$@" -MT"$(<:.c=.o)" "$<"
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) $(PROGS) $(ASMOBJS)
|
||||
rm -f $(OBJS) $(PROGS) $(ASMOBJS) $(DEPS)
|
||||
|
||||
-include $(DEPS)
|
||||
|
|
Loading…
Reference in a new issue