hi, i am trying to create a makefile.am with automake and in the makefile i want to add opencv library. i tried it in the following way but it does not work. Can you point out what is wrong in my code?
AM_CFLAGS = -Wall -I/usr/local/include/opencv
AM_LDFLAGS = -lm -L/usr/local/lib
if DEBUG
AM_CFLAGS += -O0 -ggdb
else
AM_CFLAGS += -O3
AM_LDFLAGS += -s endif
AM_CXXFLAGS = $(AM_CFLAGS)
bin_PROGRAMS = a
a_SOURCES = xx.c xxx.c a.c aa.c aaa.c aaaa.c aaaaa.c