Line | |
---|
1 | WANT_DEBUG = #yes |
---|
2 | |
---|
3 | TARGETS = pymolproxy |
---|
4 | |
---|
5 | CC = @CC@ |
---|
6 | CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES) |
---|
7 | CFLAGS = @CFLAGS@ |
---|
8 | DEFINES = -DSTANDALONE \ |
---|
9 | -DSVN_VERSION=\"$(SVN_VERSION)\" \ |
---|
10 | -DSTATSDIR=\"$(STATSDIR)\" \ |
---|
11 | -DLOGDIR=\"$(LOGDIR)\" |
---|
12 | EXTRA_CFLAGS = -Wall |
---|
13 | INCLUDES = $(TCL_INC_SPEC) -I$(srcdir) |
---|
14 | TCL_INC_SPEC = @TCL_INC_SPEC@ |
---|
15 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ |
---|
16 | |
---|
17 | bindir = @bindir@ |
---|
18 | datadir = @datadir@ |
---|
19 | datarootdir = @datarootdir@ |
---|
20 | exec_prefix = @exec_prefix@ |
---|
21 | includedir = @includedir@ |
---|
22 | libdir = @libdir@ |
---|
23 | mandir = @mandir@ |
---|
24 | prefix = @prefix@ |
---|
25 | srcdir = @srcdir@ |
---|
26 | |
---|
27 | INSTALL = @INSTALL@ |
---|
28 | MKDIR_P = @MKDIR_P@ |
---|
29 | VPATH = $(srcdir) |
---|
30 | |
---|
31 | SVN_VERSION = $(shell svnversion $(srcdir) | sed 's/Unversioned directory/unknown/') |
---|
32 | STATSDIR = @STATSDIR@ |
---|
33 | LOGDIR = @LOGDIR@ |
---|
34 | |
---|
35 | ifdef WANT_DEBUG |
---|
36 | DEFINES += -DWANT_DEBUG |
---|
37 | endif |
---|
38 | |
---|
39 | .PHONY: all install clean distclean |
---|
40 | |
---|
41 | FILES = pymolproxy |
---|
42 | PROXY_OBJS = pymolproxy.o md5.o |
---|
43 | LIBS = $(TCL_LIB_SPEC) \ |
---|
44 | -Wl,-rpath,$(libdir) |
---|
45 | |
---|
46 | SCRIPTS = $(srcdir)/scripts/box.py |
---|
47 | |
---|
48 | all: $(TARGETS) |
---|
49 | |
---|
50 | pymolproxy: $(PROXY_OBJS) |
---|
51 | $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS) -lpthread |
---|
52 | |
---|
53 | .c.o: |
---|
54 | $(CC) $(CC_SWITCHES) -o $@ -c $< |
---|
55 | |
---|
56 | install: install-pymolproxy install-scripts |
---|
57 | |
---|
58 | install-pymolproxy: pymolproxy |
---|
59 | $(MKDIR_P) -m 0755 $(bindir) |
---|
60 | for i in $(FILES) ; do \ |
---|
61 | $(INSTALL) -m 0555 $$i $(bindir) ; \ |
---|
62 | done |
---|
63 | |
---|
64 | install-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 | |
---|
70 | clean: |
---|
71 | $(RM) a.out *.o *~ core* $(TARGETS) .deps/*.d |
---|
72 | |
---|
73 | distclean: 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.