source: nanoscale/trunk/Makefile.in @ 4790

Last change on this file since 4790 was 4585, checked in by ldelgass, 7 years ago

fix tab

File size: 1.7 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 start_nanoscale.sh
52        $(INSTALL_PROGRAM) -D nanoscale $(bindir)/nanoscale
53        $(INSTALL_PROGRAM) start_nanoscale.sh $(bindir)/start_nanoscale.sh
54        $(INSTALL_SCRIPT) renderservers.tcl $(libdir)
55
56client: $(CLIENT_OBJS)
57
58.c.o:
59        $(CC) $(CC_SWITCHES) -o $@ -c $<
60
61clean:
62        $(RM) -r a.out $(SERVER_OBJS) *~ core* $(TARGETS) *.log *.tmp logfile* .deps/*.d
63
64distclean: clean
65        $(RM) -r autom4te.cache
66        $(RM) Makefile config.cache config.log config.status config.h renderservers.tcl start_nanoscale.sh
67
Note: See TracBrowser for help on using the repository browser.