2
# Makefile.prog.in - Makerules for bilding programs
4
# $Id: Makefile.prog.in,v 1.1.1.2.6.1.2.3 2002/01/22 11:57:53 icastle Exp $
6
# Copyright (C) 1998 Cees A. de Groot
8
CLEANFILES=-r $(PROG) $(OBJS) core .libs Makefile.lt
11
LINKFLAGS = @LINKFLAGS@
13
ALL_LIBS = $(XLIBS) $(LIBS)
15
echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
17
PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
21
$(PROG): $(OBJS) $(COBJS) $(LT_LIBS)
22
$(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LT_LIBS)
25
-test -d $(DESTDIR)$(bindir) || \
26
(mkdir $(DESTDIR)$(bindir); chmod 755 $(DESTDIR)$(bindir))
27
-rm -f $(DESTDIR)$(bindir)/$(PROG)
28
$(LIBTOOL) --mode=install $(INSTALL) $(PROG) $(DESTDIR)$(bindir)
31
depend.temp: $(GENSRCS)