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

Last change on this file since 3377 was 3377, checked in by gah, 10 years ago

rework of stats log file.

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