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

Last change on this file since 4060 was 4060, checked in by ldelgass, 6 years ago

Add separate configure scripts for nanovis and vtkvis, remove them from the
vizservers configure (which now only configures nanoscale and pymolproxy).

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