Skip to content
Snippets Groups Projects
Commit e1a54304 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Move SRC_PATH hack around to allow compilation from subdir again.

parent 08b4a667
No related branches found
No related tags found
No related merge requests found
MAIN_MAKEFILE=1
include config.mak include config.mak
vpath %.c $(SRC_PATH) vpath %.c $(SRC_PATH)
...@@ -39,7 +40,6 @@ DATA_FILES := $(wildcard $(SRC_PATH)/ffpresets/*.ffpreset) ...@@ -39,7 +40,6 @@ DATA_FILES := $(wildcard $(SRC_PATH)/ffpresets/*.ffpreset)
SKIPHEADERS = cmdutils_common_opts.h SKIPHEADERS = cmdutils_common_opts.h
MAIN_MAKEFILE=1
include $(SRC_PATH)/common.mak include $(SRC_PATH)/common.mak
FF_LDFLAGS := $(FFLDFLAGS) FF_LDFLAGS := $(FFLDFLAGS)
......
...@@ -7,12 +7,6 @@ all: all-yes ...@@ -7,12 +7,6 @@ all: all-yes
ifndef SUBDIR ifndef SUBDIR
ifndef MAIN_MAKEFILE
ifeq ($(SRC_PATH),.)
SRC_PATH = ..
endif
endif
ifndef V ifndef V
Q = @ Q = @
ECHO = printf "$(1)\t%s\n" $(2) ECHO = printf "$(1)\t%s\n" $(2)
......
...@@ -3297,6 +3297,9 @@ BINDIR=\$(DESTDIR)$bindir ...@@ -3297,6 +3297,9 @@ BINDIR=\$(DESTDIR)$bindir
DATADIR=\$(DESTDIR)$datadir DATADIR=\$(DESTDIR)$datadir
MANDIR=\$(DESTDIR)$mandir MANDIR=\$(DESTDIR)$mandir
SRC_PATH=$source_path SRC_PATH=$source_path
ifndef MAIN_MAKEFILE
SRC_PATH:=\$(SRC_PATH:.%=..%)
endif
CC_IDENT=$cc_ident CC_IDENT=$cc_ident
ARCH=$arch ARCH=$arch
CC=$cc CC=$cc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment