source: nanoscale/branches/1.0/Makefile.in @ 6623

Last change on this file since 6623 was 6623, checked in by ldelgass, 6 years ago

Merge selected nanoscale changes from trunk (by hand)

File size: 1.7 KB
Line 
1WANT_TRACE      = #yes
2
3CC              = @CC@
4CFLAGS          = @CFLAGS@
5EXTRA_CFLAGS    = -Wall
6CC_SWITCHES     = $(CFLAGS) $(EXTRA_CFLAGS) $(INCLUDES) $(DEFINES)
7LDFLAGS         = @LDFLAGS@
8
9bindir          = @bindir@
10datadir         = @datadir@
11datarootdir     = @datarootdir@
12exec_prefix     = @exec_prefix@
13includedir      = @includedir@
14libdir          = @libdir@
15mandir          = @mandir@
16prefix          = @prefix@
17srcdir          = @srcdir@
18
19VPATH           = $(srcdir)
20
21INSTALL         = @INSTALL@
22INSTALL_PROGRAM = ${INSTALL} -m 0555
23INSTALL_DATA    = ${INSTALL} -m 0444
24INSTALL_SCRIPT  = ${INSTALL} -m 0444
25RM              = rm -f
26
27SERVER_OBJS     = server.o
28CLIENT_OBJS     = client.o clientlib.o
29
30TCL_LIB_SPEC    = @TCL_LIB_SPEC@
31TCL_INC_SPEC    = @TCL_INC_SPEC@
32LD_RUN_PATH     = $(libdir)
33LOGDIR          = @LOGDIR@
34SVN_VERSION     = $(shell svnversion $(srcdir) | sed 's/Unversioned directory/unknown/')
35
36ifdef WANT_TRACE
37DEFINES         = -DWANT_TRACE
38endif
39CONFIGFILE      = renderservers.tcl
40DEFINES         += -DSERVERSFILE=\"$(libdir)/$(CONFIGFILE)\" \
41                -DSVN_VERSION=\"$(SVN_VERSION)\" \
42                -DLOGDIR=\"$(LOGDIR)\"
43INCLUDES        = -I. $(TCL_INC_SPEC)
44LIBS            = $(TCL_LIB_SPEC) \
45                -Wl,-rpath,$(LD_RUN_PATH)
46
47.PHONY: all install clean distclean
48
49TARGETS         = nanoscale
50
51all: $(TARGETS)
52
53nanoscale: $(SERVER_OBJS)
54        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS)
55
56install: nanoscale $(CONFIGFILE) start_nanoscale.sh
57        $(INSTALL_PROGRAM) -D nanoscale $(bindir)/nanoscale
58        $(INSTALL_PROGRAM) start_nanoscale.sh $(bindir)/start_nanoscale.sh
59        $(INSTALL_DATA) $(CONFIGFILE) $(libdir)
60
61client: $(CLIENT_OBJS)
62
63.c.o:
64        $(CC) $(CC_SWITCHES) -o $@ -c $<
65
66clean:
67        $(RM) -r a.out *.o *~ core* $(TARGETS) .deps/*.d
68
69distclean: clean
70        $(RM) -r autom4te.cache
71        $(RM) Makefile config.cache config.log config.status config.h $(CONFIGFILE) start_nanoscale.sh
72
Note: See TracBrowser for help on using the repository browser.