source: pymolproxy/tags/1.0.0/Makefile.in @ 6716

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

Remove old (non-threaded) pymolproxy implementation from trunk. Can be restored
to a branch if ever need it again. The trunk version of nanoscale will be
changed to use pymolproxy as the binary name

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