Line | |
---|
1 | |
---|
2 | TARGETS = pymolproxy |
---|
3 | |
---|
4 | CC = @CC@ |
---|
5 | INCLUDES = -I@TCL_INCL_DIR@ |
---|
6 | CFLAGS = @CFLAGS@ |
---|
7 | EXTRA_CFLAGS = -Wall |
---|
8 | DEFINES = -DSTANDALONE |
---|
9 | CC_SWITCHES = $(CFLAGS) $(EXTRA_CFLAGS) $(DEFINES) $(INCLUDES) |
---|
10 | |
---|
11 | bindir = @bindir@ |
---|
12 | datadir = @datarootdir@ |
---|
13 | exec_prefix = @exec_prefix@ |
---|
14 | includedir = @includedir@ |
---|
15 | libdir = @libdir@ |
---|
16 | mandir = @mandir@ |
---|
17 | prefix = @prefix@ |
---|
18 | srcdir = @srcdir@ |
---|
19 | |
---|
20 | RP_DIR = @RP_DIR@ |
---|
21 | INSTALL = @INSTALL@ |
---|
22 | INSTALL_PROGRAM = ${INSTALL} -m 755 |
---|
23 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
24 | INSTALL_SCRIPT = ${INSTALL} -m 644 |
---|
25 | VPATH = $(srcdir) |
---|
26 | |
---|
27 | .PHONY: all install clean distclean |
---|
28 | |
---|
29 | OBJS = pymolproxy.o |
---|
30 | LIBS = -ltcl8.4 |
---|
31 | |
---|
32 | all: $(TARGETS) |
---|
33 | |
---|
34 | pymolproxy: $(OBJS) |
---|
35 | $(CC) $(CC_SWITCHES) -o $@ $^ $(LIBS) |
---|
36 | |
---|
37 | .c.o: |
---|
38 | $(CC) $(CC_SWITCHES) -o $@ -c $< |
---|
39 | |
---|
40 | install: pymolproxy |
---|
41 | $(INSTALL_PROGRAM) pymolproxy $(bindir)/pymolproxy |
---|
42 | $(INSTALL_PROGRAM) $(srcdir)/pymol $(bindir)/pymol |
---|
43 | @if test "$(RP_DIR)/lib" != "$(libdir)" ; then \ |
---|
44 | cp -rL $(RP_DIR)/lib/pymol $(libdir)/pymol; \ |
---|
45 | fi |
---|
46 | |
---|
47 | clean: |
---|
48 | rm -rf a.out *.o *~ core* $(TARGETS) *.log *.tmp logfile* .deps/*.d |
---|
49 | |
---|
50 | distclean: clean |
---|
51 | rm Makefile |
---|
Note: See
TracBrowser
for help on using the repository browser.