add infrastructure for kpathsea
[mplib] / src / texk / make / programs.mk
1 # programs.mk -- used by Makefiles for executables only.
2
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)
6
7 # proglib is for web2c; 
8 # XLOADLIBES is for the installer.
9 LIBS = @LIBS@
10 LOADLIBES = $(proglib) $(kpathsea) $(LIBS) $(XLOADLIBES)
11
12 # May as well separate linking from compiling, just in case.
13 CCLD = $(CC)
14 link_command = $(CCLD) -o $@ $(LDFLAGS) 
15
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)
19 # End of programs.mk.