source: pymolproxy/trunk/Makefile.in

Last change on this file was 6617, checked in by ldelgass, 8 years ago

More logging fixes

File size: 1.6 KB
Line 
1WANT_DEBUG      = #yes
2
3TARGETS =       pymolproxy
4
5CC =            @CC@
6CC_SWITCHES =   $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES)
7CFLAGS =        @CFLAGS@
8DEFINES =       -DSTANDALONE \
9                -DSVN_VERSION=\"$(SVN_VERSION)\" \
10                -DSTATSDIR=\"$(STATSDIR)\" \
11                -DLOGDIR=\"$(LOGDIR)\"
12EXTRA_CFLAGS =  -Wall
13INCLUDES =      $(TCL_INC_SPEC) -I$(srcdir)
14TCL_INC_SPEC =  @TCL_INC_SPEC@
15TCL_LIB_SPEC =  @TCL_LIB_SPEC@
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) | sed 's/Unversioned directory/unknown/')
32STATSDIR        = @STATSDIR@
33LOGDIR          = @LOGDIR@
34
35ifdef WANT_DEBUG
36DEFINES += -DWANT_DEBUG
37endif
38
39.PHONY: all install clean distclean
40
41FILES =         pymolproxy
42PROXY_OBJS =    pymolproxy.o md5.o
43LIBS =          $(TCL_LIB_SPEC) \
44                -Wl,-rpath,$(libdir)
45
46SCRIPTS         = $(srcdir)/scripts/box.py
47
48all: $(TARGETS)
49
50pymolproxy: $(PROXY_OBJS)
51        $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS) -lpthread
52
53.c.o:
54        $(CC) $(CC_SWITCHES) -o $@ -c $<
55
56install: install-pymolproxy install-scripts
57
58install-pymolproxy: pymolproxy
59        $(MKDIR_P) -m 0755 $(bindir)
60        for i in $(FILES) ; do \
61            $(INSTALL) -m 0555 $$i $(bindir) ; \
62        done
63
64install-scripts:
65        $(MKDIR_P) -m 0755 $(libdir)/pymol/rappture
66        for i in $(SCRIPTS) ; do \
67            $(INSTALL) -m 0555 $$i $(libdir)/pymol/rappture; \
68        done
69
70clean:
71        $(RM) a.out *.o *~ core* $(TARGETS) .deps/*.d
72
73distclean: clean
74        $(RM) -f autom4te.cache
75        $(RM) Makefile config.cache config.log config.status pymol
Note: See TracBrowser for help on using the repository browser.