source: trunk/packages/vizservers/pymolproxy/Makefile.in @ 3403

Last change on this file since 3403 was 3403, checked in by gah, 6 years ago

make STATSDIR configurable

File size: 1.6 KB
Line 
1
2TARGETS =       pymolproxy pymolproxy2
3
4CC =            @CC@
5CC_SWITCHES =   $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
6CFLAGS =        @CFLAGS@
7DEFINES =       -DSTANDALONE \
8                -DSVN_VERSION=\"$(SVN_VERSION)\" \
9                -DSTATSDIR=\"$(STATSDIR)\"
10EXTRA_CFLAGS =  -Wall
11INCLUDES =      $(TCL_INC_SPEC) -I$(srcdir)
12TCL_INC_SPEC =  @TCL_INC_SPEC@
13TCL_LIB_SPEC =  @TCL_LIB_SPEC@
14RP_LIB_DIR =    @RP_LIB_DIR@
15
16bindir =        @bindir@
17datadir =       @datadir@
18datarootdir =   @datarootdir@
19exec_prefix =   @exec_prefix@
20includedir =    @includedir@
21libdir =        @libdir@
22mandir =        @mandir@
23prefix =        @prefix@
24srcdir =        @srcdir@
25
26RP_DIR =        @RP_DIR@
27INSTALL =       @INSTALL@
28MKDIR_P =       @MKDIR_P@
29VPATH =         $(srcdir)
30
31SVN_VERSION     = $(shell svnversion $(srcdir))
32STATSDIR        = @STATSDIR@
33
34.PHONY: all install clean distclean
35
36FILES =         pymolproxy pymolproxy2
37PROXY_OBJS =    pymolproxy.o md5.o
38PROXY2_OBJS =   pymolproxy2.o md5.o
39LIBS =          $(TCL_LIB_SPEC) \
40                -Wl,-rpath,$(RP_LIB_DIR)
41
42SCRIPTS         = $(srcdir)/scripts/box.py
43
44all: $(TARGETS)
45
46pymolproxy: $(PROXY_OBJS)
47        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS)
48
49pymolproxy2: $(PROXY2_OBJS)
50        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS) -lpthread
51
52.c.o:
53        $(CC) $(CC_SWITCHES) -o $@ -c $<
54
55install: install-pymolproxy install-scripts
56
57install-pymolproxy: pymolproxy pymolproxy2
58        $(MKDIR_P) -m 0755 $(bindir)
59        for i in $(FILES) ; do \
60            $(INSTALL) -m 0555 $$i $(bindir) ; \
61        done
62
63install-scripts:
64        $(MKDIR_P) -m 0755 $(libdir)/pymol/rappture
65        for i in $(SCRIPTS) ; do \
66            $(INSTALL) -m 0555 $$i $(libdir)/pymol/rappture; \
67        done
68
69clean:
70        $(RM) a.out *.o *~ core* $(TARGETS) *.log *.tmp logfile* .deps/*.d
71
72distclean: clean
73        $(RM) Makefile pymol
Note: See TracBrowser for help on using the repository browser.