source: branches/r9/packages/vizservers/nanoscale/Makefile.in @ 4838

Last change on this file since 4838 was 4838, checked in by gah, 6 years ago
File size: 1.6 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))
34
35DEFINES         =
36SERVER_DEFINES  = \
37                -DSERVERSFILE=\"$(libdir)/renderservers.tcl\" \
38                -DSVN_VERSION=\"$(SVN_VERSION)\" \
39                -DLOGDIR=\"$(LOGDIR)\"
40INCLUDES        = -I. $(TCL_INC_SPEC)
41LIBS            = $(TCL_LIB_SPEC) \
42                -Wl,-rpath,$(LD_RUN_PATH)
43
44.PHONY: all install clean distclean
45
46TARGETS         = nanoscale
47
48all: $(TARGETS)
49
50nanoscale: $(SERVER_OBJS)
51        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS)
52
53install: nanoscale renderservers.tcl
54        $(INSTALL_PROGRAM) -D nanoscale $(bindir)/nanoscale
55        $(INSTALL_SCRIPT) renderservers.tcl $(libdir)
56        $(INSTALL_PROGRAM) -m 0555 start_nanoscale.sh $(bindir)/start_nanoscale.sh
57
58client: $(CLIENT_OBJS)
59
60.c.o:
61        $(CC) $(CC_SWITCHES) -o $@ -c $<
62
63server.o: server.c
64        $(CC) $(CC_SWITCHES) $(SERVER_DEFINES) -o $@ -c $<
65
66clean:
67        $(RM) -r a.out $(SERVER_OBJS) *~ core* $(TARGETS) *.log *.tmp logfile* .deps/*.d
68
69distclean: clean
70        $(RM) Makefile config.h renderservers.tcl
71
Note: See TracBrowser for help on using the repository browser.