Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/mummer-3.23/Makefile @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 #------------------------------------------------------------------------------- | |
2 # Top level makefile for MUMmer 3.0 | |
3 # | |
4 # Dependencies: '/bin/sh', 'g++', 'gcc', 'csh', 'perl', 'sed' | |
5 # | |
6 # 'make all' builds all MUMmer code and scripts in the base directory | |
7 # | |
8 # 'make check' checks for the existance of the MUMmer dependencies | |
9 # | |
10 # 'make clean' removes *.o *~ core* and executable files | |
11 # | |
12 # 'make dist' creates a gzipped tarfile of the MUMmer directories | |
13 # | |
14 # 'make install' alias for 'make all' (for compatibility) | |
15 # | |
16 # 'make kurtz' builds Stefan's mummer program in the base directory | |
17 # | |
18 # 'make scripts' builds the MUMmer scripts in the base directory | |
19 # | |
20 # 'make tigr' builds TIGR's code in the base directory | |
21 # | |
22 # 'make uninstall' alias for 'make clean' (for compatibility) | |
23 # | |
24 #------------------------------------------------------------------------------- | |
25 SHELL = /bin/sh | |
26 VERSION := 3.23 | |
27 | |
28 | |
29 TOP_DIR := $(CURDIR) | |
30 BIN_DIR := $(TOP_DIR) | |
31 AUX_BIN_DIR := $(TOP_DIR)/aux_bin | |
32 | |
33 DOC_DIR := $(TOP_DIR)/docs | |
34 SCRIPT_DIR := $(TOP_DIR)/scripts | |
35 TIGR_SRC_DIR := $(TOP_DIR)/src/tigr | |
36 KURTZ_SRC_DIR := $(TOP_DIR)/src/kurtz | |
37 | |
38 CC := $(filter /%,$(shell /bin/sh -c 'type gcc')) | |
39 CXX := $(filter /%,$(shell /bin/sh -c 'type g++')) | |
40 SED := $(filter /%,$(shell /bin/sh -c 'type sed')) | |
41 CSH := $(filter /%,$(shell /bin/sh -c 'type csh')) | |
42 PERL := $(filter /%,$(shell /bin/sh -c 'type perl')) | |
43 AR := $(filter /%,$(shell /bin/sh -c 'type ar')) | |
44 | |
45 CXXFLAGS = -O3 | |
46 CFLAGS = -O3 | |
47 LDFLAGS = | |
48 | |
49 FLATS = ACKNOWLEDGEMENTS COPYRIGHT INSTALL LICENSE Makefile README ChangeLog | |
50 | |
51 | |
52 | |
53 #-- EXPORT THESE VARIABLES TO OTHER MAKEFILES | |
54 export BIN_DIR AUX_BIN_DIR CXX CC CFLAGS CXXFLAGS LDFLAGS | |
55 | |
56 | |
57 | |
58 | |
59 #-- PHONY rules --# | |
60 .PHONY: all check clean dist scripts uninstall | |
61 | |
62 | |
63 all: kurtz tigr scripts | |
64 | |
65 | |
66 check: | |
67 ifndef TOP_DIR | |
68 @echo "ERROR: could not find working directory" | |
69 endif | |
70 ifndef CC | |
71 @echo "ERROR: 'gcc' GNU C compiler not found" | |
72 endif | |
73 ifndef CXX | |
74 @echo "ERROR: 'g++' GNU C++ compiler not found" | |
75 endif | |
76 ifndef SED | |
77 @echo "ERROR: 'sed' StreamEDitor not found" | |
78 endif | |
79 ifndef CSH | |
80 @echo "ERROR: 'csh' C-shell not found" | |
81 endif | |
82 ifndef PERL | |
83 @echo "ERROR: 'perl' PERL not found" | |
84 endif | |
85 ifndef AR | |
86 @echo "ERROR: 'ar' GNU archiver not found" | |
87 endif | |
88 @echo "check complete" | |
89 | |
90 | |
91 clean: | |
92 rm -f *~ core* | |
93 cd $(KURTZ_SRC_DIR); $(MAKE) clean | |
94 cd $(TIGR_SRC_DIR); $(MAKE) clean | |
95 cd $(SCRIPT_DIR); $(MAKE) clean | |
96 cd $(DOC_DIR); $(MAKE) clean | |
97 | |
98 | |
99 dist: DISTDIR = MUMmer$(VERSION) | |
100 dist: | |
101 mkdir $(DISTDIR) | |
102 cp -r aux_bin $(DISTDIR) | |
103 cp -r docs $(DISTDIR) | |
104 cp -r scripts $(DISTDIR) | |
105 cp -r src $(DISTDIR) | |
106 cp $(FLATS) $(DISTDIR) | |
107 rm -rf `find $(DISTDIR) -name CVS` | |
108 tar -cvf $(DISTDIR).tar $(DISTDIR) | |
109 gzip $(DISTDIR).tar | |
110 rm -rf $(DISTDIR) | |
111 | |
112 | |
113 install: all | |
114 | |
115 | |
116 kurtz: | |
117 cd $(KURTZ_SRC_DIR); $(MAKE) mummer | |
118 | |
119 | |
120 scripts: | |
121 cd $(SCRIPT_DIR); $(MAKE) all | |
122 | |
123 | |
124 tigr: | |
125 cd $(TIGR_SRC_DIR); $(MAKE) all | |
126 | |
127 | |
128 uninstall: clean | |
129 | |
130 | |
131 #-- END OF MAKEFILE --# |