#
include config.mak
-VPATH=$(SRC_PATH)
+VPATH=$(SRC_PATH_BARE)
CFLAGS=$(OPTFLAGS) -I$(BUILD_ROOT) -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
-I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat -I$(SRC_PATH)/libswscale \
DEP_LIBS=libavcodec/$(LIBPREF)avcodec$(LIBSUF) libavformat/$(LIBPREF)avformat$(LIBSUF)
endif
-ifeq ($(BUILD_VHOOK),yes)
+ifeq ($(CONFIG_VHOOK),yes)
VHOOK=videohook
INSTALLVHOOK=install-vhook
endif
$(STRIP) $@
version.h:
- $(SRC_PATH)/version.sh "$(SRC_PATH)"
+ $(SRC_PATH)/version.sh $(SRC_PATH)
output_example$(EXESUF): output_example.o .libs
$(CC) $(LDFLAGS) -o $@ output_example.o $(EXTRALIBS)
ifeq ($(CONFIG_SWSCALER),yes)
$(MAKE) -C libswscale depend
endif
-ifeq ($(BUILD_VHOOK),yes)
+ifeq ($(CONFIG_VHOOK),yes)
$(MAKE) -C vhook depend
endif
.depend: $(SRCS) version.h
- $(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $(SRCS) 1>.depend
+ $(CC) -MM $(CFLAGS) $(SDL_CFLAGS) $^ 1>.depend
.libs: lib
@test -f .libs || touch .libs