[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to force location of headers

From: Kabi
Subject: How to force location of headers
Date: Mon, 9 Apr 2012 06:26:42 -0700 (PDT)


I am trying to find a way to force make to look for header-files in a
specific location, so I am looking for some option to put in to
make this happen.
This option is for unittesting with check, where I am trying to override
included headers, to avoid controller specific options in the original

Is this possible?

I am using AM_CFLAGS to include directories where make should look for
headers, but only headers surrounded by <> when included is overridden. make
is still looking for headers surrounded byt "" in the directory with the
projects source .c files.

PRJDIR = ../../xyz_prj

AM_CFLAGS = -Ixyz/xyz -Ixyz

noinst_libAT_SMdir = ${includedir}/xyz

libAT_SM_la_SOURCES = ${PRJDIR}/xyz.c

TESTS = check_main
check_PROGRAMS = check_main
check_main_SOURCES = check_main.c check_xyz.c
check_main_LDADD = @CHECK_LIBS@

ACLOCAL_AMFLAGS = -I m4 --install

The project source files are compiled into a library (only 1 in this
example) before included into the check project.

View this message in context:
Sent from the Gnu - Autoconf - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]