configure: use relative paths for in-tree build

Also
- move CPPFLAGS to Makefile
- Use top_srcdir in lib/Makefile
This commit is contained in:
grischka
2013-01-30 18:39:09 +01:00
parent 6ccee6edb3
commit 17cf0dcf70
3 changed files with 19 additions and 16 deletions

View File

@ -6,6 +6,8 @@ TOP ?= .
include $(TOP)/config.mak
VPATH = $(top_srcdir)
CPPFLAGS = -I$(TOP) # for config.h
CPPFLAGS_P=$(CPPFLAGS) -DCONFIG_TCC_STATIC
CFLAGS_P=$(CFLAGS) -pg -static
LIBS_P=