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