debian/build
- Always define top_srcdir and VPATH. - Fix build of genksyms and kconfig. svn path=/dists/trunk/linux-tools/; revision=18086
This commit is contained in:
parent
1e409bb704
commit
44e90b24ae
|
@ -8,6 +8,4 @@ SUBDIRS = \
|
||||||
|
|
||||||
OUTDIR = .
|
OUTDIR = .
|
||||||
|
|
||||||
top_srcdir = .
|
include Makefile.inc
|
||||||
|
|
||||||
include $(top_srcdir)/debian/build/Makefile.inc
|
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
|
top_srcdir = $(dir $(lastword $(MAKEFILE_LIST)))/../..
|
||||||
|
|
||||||
|
VPATH = $(top_srcdir)/$(OUTDIR)
|
||||||
|
|
||||||
SHELL = /bin/sh -e
|
SHELL = /bin/sh -e
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CXX = g++
|
CXX = g++
|
||||||
CFLAGS ?= -O2 -Wall
|
CFLAGS ?= -O2 -Wall
|
||||||
|
CPPFLAGS = -I$(top_srcdir)/$(OUTDIR) -I$(top_srcdir)/debian/build/$(OUTDIR)
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
all: all-local all-recursive
|
all: all-local all-recursive
|
||||||
|
|
|
@ -43,8 +43,4 @@ SUBDIRS = \
|
||||||
|
|
||||||
OUTDIR = scripts
|
OUTDIR = scripts
|
||||||
|
|
||||||
top_srcdir = ..
|
include ..//Makefile.inc
|
||||||
|
|
||||||
VPATH = $(top_srcdir)/scripts
|
|
||||||
|
|
||||||
include $(top_srcdir)/debian/build/Makefile.inc
|
|
||||||
|
|
|
@ -3,8 +3,4 @@ PROGS = \
|
||||||
|
|
||||||
OUTDIR = scripts/basic
|
OUTDIR = scripts/basic
|
||||||
|
|
||||||
top_srcdir = ../..
|
include ../../Makefile.inc
|
||||||
|
|
||||||
VPATH = $(top_srcdir)/$(OUTDIR)
|
|
||||||
|
|
||||||
include $(top_srcdir)/debian/build/Makefile.inc
|
|
||||||
|
|
|
@ -2,17 +2,11 @@ PROGS = genksyms
|
||||||
|
|
||||||
OUTDIR = scripts/genksyms
|
OUTDIR = scripts/genksyms
|
||||||
|
|
||||||
top_srcdir = ../..
|
include ../../Makefile.inc
|
||||||
|
|
||||||
VPATH = $(top_srcdir)/$(OUTDIR)
|
genksyms: genksyms.o parse.tab.o lex.lex.o
|
||||||
|
|
||||||
include $(top_srcdir)/debian/build/Makefile.inc
|
lex.lex.o: keywords.hash.c parse.tab.h
|
||||||
|
|
||||||
CFLAGS += -I$(VPATH)
|
|
||||||
|
|
||||||
genksyms: genksyms.o parse.o lex.o
|
|
||||||
|
|
||||||
lex.o: keywords.c parse.h
|
|
||||||
|
|
||||||
%.c: %.c_shipped
|
%.c: %.c_shipped
|
||||||
ln -s $< $@
|
ln -s $< $@
|
||||||
|
@ -21,4 +15,4 @@ lex.o: keywords.c parse.h
|
||||||
ln -s $< $@
|
ln -s $< $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f keywords.c parse.h
|
rm -f keywords.hash.c parse.tab.c parse.tab.h
|
||||||
|
|
|
@ -2,17 +2,11 @@ PROGS = conf
|
||||||
|
|
||||||
OUTDIR = scripts/kconfig
|
OUTDIR = scripts/kconfig
|
||||||
|
|
||||||
top_srcdir = ../..
|
include ../../Makefile.inc
|
||||||
|
|
||||||
VPATH = $(top_srcdir)/$(OUTDIR)
|
|
||||||
|
|
||||||
include $(top_srcdir)/debian/build/Makefile.inc
|
|
||||||
|
|
||||||
CFLAGS += -I$(VPATH)
|
|
||||||
|
|
||||||
conf: conf.o zconf.tab.o
|
conf: conf.o zconf.tab.o
|
||||||
|
|
||||||
zconf.tab.c: zconf.hash.c lex.zconf.c
|
zconf.tab.c: zconf.hash.c zconf.lex.c
|
||||||
|
|
||||||
%.c: %.c_shipped
|
%.c: %.c_shipped
|
||||||
ln -sf $< $@
|
ln -sf $< $@
|
||||||
|
@ -21,4 +15,4 @@ zconf.tab.c: zconf.hash.c lex.zconf.c
|
||||||
ln -sf $< $@
|
ln -sf $< $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f zconf.tab.c zconf.hash.c lex.zconf.c
|
rm -f zconf.tab.c zconf.hash.c zconf.lex.c
|
||||||
|
|
|
@ -7,9 +7,7 @@ PROGS = \
|
||||||
|
|
||||||
OUTDIR = scripts/mod
|
OUTDIR = scripts/mod
|
||||||
|
|
||||||
top_srcdir = ../..
|
include ../../Makefile.inc
|
||||||
|
|
||||||
include $(top_srcdir)/debian/build/Makefile.inc
|
|
||||||
|
|
||||||
modpost.real-%:
|
modpost.real-%:
|
||||||
$(MAKE) -f Makefile.real TYPE=$* SOURCEDIR=$(top_srcdir)/scripts/mod
|
$(MAKE) -f Makefile.real TYPE=$* SOURCEDIR=$(top_srcdir)/scripts/mod
|
||||||
|
|
Loading…
Reference in New Issue