~ubuntu-branches/ubuntu/trusty/openjade1.3/trusty

« back to all changes in this revision

Viewing changes to Makefile.prog.in

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2002-04-09 00:01:50 UTC
  • Revision ID: james.westby@ubuntu.com-20020409000150-r9rkyalxlhvf9ba3
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#  Makefile.prog.in - Makerules for bilding programs
 
3
#
 
4
#  $Id: Makefile.prog.in,v 1.1.1.2.6.1.2.3 2002/01/22 11:57:53 icastle Exp $
 
5
#
 
6
#  Copyright (C) 1998 Cees A. de Groot
 
7
#
 
8
CLEANFILES=-r $(PROG) $(OBJS) core .libs Makefile.lt
 
9
 
 
10
top_builddir=@TOP@
 
11
LINKFLAGS = @LINKFLAGS@
 
12
 
 
13
ALL_LIBS = $(XLIBS) $(LIBS)
 
14
Makefile.lt:
 
15
        echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
 
16
 
 
17
PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
 
18
 
 
19
all: $(PROG)
 
20
 
 
21
$(PROG): $(OBJS) $(COBJS) $(LT_LIBS)
 
22
        $(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LT_LIBS)
 
23
 
 
24
install: $(PROG)
 
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)
 
29
 
 
30
depend: depend_src
 
31
depend.temp: $(GENSRCS)
 
32
gen: $(GENSRCS)