lua-users home
lua-l archive

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

> If it was written in mk-configure, i'd look like the following (not
> tested, only idea is demonstrated).

I overlooked one important fragment from pcap makefile. Analog in mk-configure
may look like the following.
CFLAGS_pcap != pcap --cflags
LDADD_pcap   != pcap -- libs
CFLAGS += ${CFLAGS_pcap}
LDADD += ${LDADD_pcap}

I introduced two new _pcap variables not because it's not possible to write
everything in two lines but because with _pcap variables it's easier for package
maintainer to overwrite the defaults.

mk-configure supports pkg-config, so, if pcap library use it,
Makefile will look even easier.