-
Notifications
You must be signed in to change notification settings - Fork 18
/
new_project.import.session
129 lines (101 loc) · 5.61 KB
/
new_project.import.session
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
This is a DEMO of script "scripts/import_project.sh"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/tmp> $NCBI/c++/scripts/import_project.sh
USAGE: import_project.sh <cvs_tree_path> [builddir]
SYNOPSIS:
Retrieve project (and all sub-projects) located in the NCBI C++ Toolkit
CVS tree at:
internal/c++/src/<cvs_tree_path>
internal/c++/include/<cvs_tree_path>
Create makefiles "Makefile.*_{lib,app}" (based on the original project
makefiles "Makefile.*.{lib,app}") to build libs/apps using pre-built NCBI
C++ Toolkit from [builddir] (default: /netopt/ncbi_tools/c++/Debug/build); also create
top-level makefiles "Makefile" from "Makefile.in".
LIMITATIONS:
- Supports only very basic substitutions in Makefile.in.
- May produce bogus library search paths.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/tmp> $NCBI/c++/scripts/import_project.sh hello
cvs checkout: Updating internal/c++/include/hello
U internal/c++/include/hello/hellocmd.hpp
U internal/c++/include/hello/hellores.hpp
cvs checkout: Updating internal/c++/src/hello
U internal/c++/src/hello/Makefile.fasthello.app
U internal/c++/src/hello/Makefile.hello.app
U internal/c++/src/hello/Makefile.in
U internal/c++/src/hello/README
U internal/c++/src/hello/fasthello.ini
U internal/c++/src/hello/hello.ini
U internal/c++/src/hello/helloapp.cpp
U internal/c++/src/hello/helloapp.hpp
U internal/c++/src/hello/hellocmd.cpp
U internal/c++/src/hello/hellores.cpp
cvs checkout: Updating internal/c++/src/hello/html
U internal/c++/src/hello/html/nosidebar.html
U internal/c++/src/hello/html/template.html
Scanning and creating makefiles under /home/vakatov/tmp/internal/c++/src/...
/home/vakatov/tmp/internal/c++/src/hello/Makefile.fasthello_app
/home/vakatov/tmp/internal/c++/src/hello/Makefile.hello_app
/home/vakatov/tmp/internal/c++/src/hello/Makefile
DONE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/tmp> cd internal/c++/src/hello/
~/tmp/internal/c++/src/hello> cat Makefile.hello_app
#
# Makefile: hello/Makefile.hello_app
# Using: Makefile.hello.app
#
# This file was originally generated by shell script "import_project.sh"
# Wed May 22 09:58:50 EDT 2002
#
### PATH TO A PRE-BUILT C++ TOOLKIT
builddir = /netopt/ncbi_tools/c++/Debug/build
# builddir = $(NCBI)/c++/Release/build
### PATH TO LOCAL LIBRARIES (may require editing)
LOCAL_LDFLAGS =
### BEGIN DEFAULT COMPILATION FLAGS -- DON'T EDIT OR MOVE THESE LINES !!!
TMPL = hello
include $(builddir)/Makefile.mk
srcdir = .
BINCOPY = @:
BINTOUCH = @:
includedir = ../../include
ORIG_CPPFLAGS = -I$(includedir) -I$(includedir)/internal $(CONF_CPPFLAGS)
CPPFLAGS = $(ORIG_CPPFLAGS)
ORIG_LDFLAGS = $(LOCAL_LDFLAGS) $(CONF_LDFLAGS)
LDFLAGS = $(ORIG_LDFLAGS)
### END DEFAULT COMPILATION FLAGS
### IMPORT THE ORIGINAL PROJECT SETTINGS -- DON'T EDIT/MOVE THIS LINE !!!
include Makefile.hello.app
### Kludge around issues with potentially-absent .dep files
$(status_dir)/.%.dep:;
#############################################################################
## YOU CAN LOCALLY OVERRIDE THE ORIGINAL(IMPORTED) PROJECT SETTINGS HERE ##
## ##
## However, if you are planning to check in these settings later, then ##
## it may be more convenient to edit directly in "Makefile.hello.app". ##
#
# PRE_LIBS =
# LIBS = $(ORIG_LIBS)
# CPPFLAGS = $(ORIG_CPPFLAGS)
# CFLAGS = $(ORIG_CFLAGS)
# CXXFLAGS = $(ORIG_CXXFLAGS)
# LDFLAGS = $(ORIG_LDFLAGS)
# ##
#############################################################################
### APPLICATION BUILD RULES -- DON'T EDIT OR MOVE THIS LINE !!!
include $(builddir)/Makefile.app
### PUT YOUR OWN ADDITIONAL TARGETS (MAKE COMMANDS/RULES) HERE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/tmp/internal/c++/src/hello> make -f Makefile.hello_app
/netopt/forte6u2/bin/CC -c +w +w2 -g -I../../include -I../../include/internal -D_DEBUG -I/netopt/ncbi_tools/c++/Debug/inc -I/netopt/ncbi_tools/c++/include -I/netopt/ncbi_tools/c++/include/ctools -I/netopt/ncbi_tools/c++/include/internal helloapp.cpp -o helloapp.o 2>&1 | /netopt/ncbi_tools/c++/compilers/cxx_filter.WorkShop53.sh
/netopt/forte6u2/bin/CC -c +w +w2 -g -I../../include -I../../include/internal -D_DEBUG -I/netopt/ncbi_tools/c++/Debug/inc -I/netopt/ncbi_tools/c++/include -I/netopt/ncbi_tools/c++/include/ctools -I/netopt/ncbi_tools/c++/include/internal hellores.cpp -o hellores.o 2>&1 | /netopt/ncbi_tools/c++/compilers/cxx_filter.WorkShop53.sh
/netopt/forte6u2/bin/CC -c +w +w2 -g -I../../include -I../../include/internal -D_DEBUG -I/netopt/ncbi_tools/c++/Debug/inc -I/netopt/ncbi_tools/c++/include -I/netopt/ncbi_tools/c++/include/ctools -I/netopt/ncbi_tools/c++/include/internal hellocmd.cpp -o hellocmd.o 2>&1 | /netopt/ncbi_tools/c++/compilers/cxx_filter.WorkShop53.sh
/netopt/forte6u2/bin/CC -xildoff -g helloapp.o hellores.o hellocmd.o -R/netopt/ncbi_tools/c++/Debug/lib -L/netopt/ncbi_tools/c++/Debug/lib -lxhtml -lxcgi -lxncbi -o hello
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~/tmp/internal/c++/src/hello> ./hello > hello.html
~/tmp/internal/c++/src/hello> netscape hello.html&