source: branches/1.3/packages/vizservers/pymolproxy/Makefile.in @ 4530

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

Merge r4024,4049,4051-4052,4060 from trunk

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@
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) | sed 's/Unversioned directory/unknown/')
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.