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