1
# programs.mk -- used by Makefiles for executables only.
3
# Don't include $(CFLAGS), since ld -g under Linux forces
4
# static libraries, e.g., libc.a and libX*.a.
5
LDFLAGS = @LDFLAGS@ $(XLDFLAGS)
7
# proglib is for web2c;
8
# XLOADLIBES is for the installer.
10
LOADLIBES = $(proglib) $(kpathsea) $(LIBS) $(XLOADLIBES)
12
# May as well separate linking from compiling, just in case.
14
link_command = $(CCLD) -o $@ $(LDFLAGS)
16
# When we link with Kpathsea, have to take account that it might be a
17
# shared library, etc.
18
kpathsea_link = $(LIBTOOL) --mode=link $(link_command)