Debian Codegraph @

indep-utils/cmu-scen-gen/setdest/Makefile.in

raw ◀ ▶
Source reconstructed at patch state 2 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 #
2 # Copyright (c) 1999 by the University of Southern California
3 # All rights reserved.
4 #
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU General Public License,
7 # version 2, as published by the Free Software Foundation.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License along
15 # with this program; if not, write to the Free Software Foundation, Inc.,
16 # 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17 #
18 # The copyright of this module includes the following
19 # linking-with-specific-other-licenses addition:
20 #
21 # In addition, as a special exception, the copyright holders of
22 # this module give you permission to combine (via static or
23 # dynamic linking) this module with free software programs or
24 # libraries that are released under the GNU LGPL and with code
25 # included in the standard release of ns-2 under the Apache 2.0
26 # license or under otherwise-compatible licenses with advertising
27 # requirements (or modified versions of such code, with unchanged
28 # license). You may copy and distribute such a system following the
29 # terms of the GNU GPL for this module and the licenses of the
30 # other code concerned, provided that you include the source code of
31 # that other code when and as the GNU GPL requires distribution of
32 # source code.
33 #
34 # Note that people who make modified versions of this module
35 # are not obligated to grant this special exception for their
36 # modified versions; it is their choice whether to do so. The GNU
37 # General Public License gives permission to release a modified
38 # version without this exception; this exception also makes it
39 # possible to release a modified version which carries forward this
40 # exception.
41 #
42 # Makefile for CMU mobile code scenario generation.
43 #
44 # $Header: /cvsroot/nsnam/ns-2/indep-utils/cmu-scen-gen/setdest/Makefile.in,v 1.12 2005/09/16 03:05:40 tomh Exp $
45
46 # Top level hierarchy
47 prefix = @prefix@
48 # Pathname of directory to install the binary
49 BINDEST = @prefix@/bin
50
51 CCX = @CXX@
52 CC = @CC@
53 MKDEP = ../../../conf/mkdep
54
55 # when including files from ns, we need to take care STL_NAMESPACE
56 DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=@CPP_NAMESPACE@
57 CFLAGS = @V_CCOPT@
58 LDFLAGS = @V_STATIC@
59 LIBS = @V_LIB@ -lm @LIBS@
60 INSTALL = @INSTALL@
61
62 all: setdest calcdest
63
64 install: setdest calcdest
65 $(INSTALL) -m 555 setdest $(DESTDIR)$(BINDEST)
66 $(INSTALL) -m 555 calcdest $(DESTDIR)$(BINDEST)
67
68 setdest: rng.o setdest.o
69 $(CCX) -o setdest [email protected] rng.o $(DEFINE) $(LDFLAGS) $(CFLAGS) \
70 $(LIBS)
71
72 calcdest: rng.o calcdest.o
73 $(CCX) -o calcdest [email protected] rng.o $(DEFINE) $(LDFLAGS) $(CFLAGS) \
74 $(LIBS)
75
76 rng.o:
77 @rm -f $@
78 $(CCX) -c $(DEFINE) -I../../.. -o $@ ../../../tools/rng.cc
79
80 setbox: setbox.o
81 $(CCX) -o setbox [email protected] $(LDFLAGS) $(CFLAGS) $(LIBS)
82
83 clean:
84 @rm -f setdest calcdest setbox *.o *.core
85
86 .SUFFIXES: .cc
87
88 .cc.o:
89 $(CCX) -c $(DEFINE) $(CFLAGS) -o $@ $*.cc
90