source: trunk/packages/vizservers/nanoscale/Makefile.in @ 4364

Last change on this file since 4364 was 4364, checked in by ldelgass, 10 years ago

Fix for exported source package build: svnversion will return "Unversioned
directory" when run on an exported source tree, but the space causes a compiler
error. Replace this string with 'unknown'. A better fix would be to capture
the svn revision at the time the tree is exported. See nanohub ticket
#265649 for a report of the problem on Mac OS X (that was with clang, but I
verified it occurs with gcc on Linux as well).

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