This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A target_os conditionally applied -lfoo switch


I need to add a library specific to a target_os. I've tried several possible techniques and can't get cooperation from the tools.

What I want is something similar to:

target_os := @target_os@

ifeq ($(target_os),mingw32)
LDADD += -lws2_32
endif


Unfortunately automake thinks the conditional belongs to it instead of make.

Help?

Earnie.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]