Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cbl-gdb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Simon Sobisch
cbl-gdb
Commits
66ab8ac9
Commit
66ab8ac9
authored
Jul 28, 2020
by
rdubner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create cobcd-rw/Makefile and minor related changes to other Makefiles
parent
25e6eaf5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
7 deletions
+47
-7
Makefile
Makefile
+9
-2
cobcd
cobcd
+1
-1
cobcd-rw/.gitignore
cobcd-rw/.gitignore
+1
-0
cobcd-rw/Makefile
cobcd-rw/Makefile
+34
-0
cobcd-sfix/Makefile
cobcd-sfix/Makefile
+0
-1
cobcd-st/Makefile
cobcd-st/Makefile
+0
-1
cobcd.bat
cobcd.bat
+1
-1
python/cobcd.py
python/cobcd.py
+1
-1
No files found.
Makefile
View file @
66ab8ac9
CPP
=
g++
export
CPP
CXXFLAGS
:=
-std
=
c++11
-Wall
-O3
export
CXXFLAGS
...
...
@@ -13,14 +15,16 @@ CWD:=$(shell basename `pwd`)
all
:
cobcd cobcd.bat
## Make sure the VERSION text in cobcd.py is up-to-date
$(MAKE)
-C
python
## Then you can make cobst
## Then you can make cobst
and friends
$(MAKE)
-C
cobcd-st
$(MAKE)
-C
cobcd-sfix
$(MAKE)
-C
cobcd-rw
.PHONY
:
test
test
:
$(MAKE)
-C
cobcd-st
$(MAKE)
-C
cobcd-sfix
$(MAKE)
-C
cobcd-rw
ifeq
($(COBCDEXISTS), $(COBCD))
$(MAKE)
-C
optfde01
endif
...
...
@@ -29,6 +33,7 @@ endif
clean
:
$(MAKE)
-C
cobcd-st clean
$(MAKE)
-C
cobcd-sfix clean
$(MAKE)
-C
cobcd-rw clean
$(MAKE)
-C
optfde01 clean
cobcd
:
include/version.h
...
...
@@ -44,6 +49,7 @@ install:
install
cobcd.bat
$(DESTDIR)
/bin/
$(MAKE)
-C
cobcd-st
install
$(MAKE)
-C
cobcd-sfix
install
$(MAKE)
-C
cobcd-rw
install
$(MAKE)
-C
python
install
@
/bin/echo
-e
"
\0
33[0;33m"
@
echo
"In order for gdb to be able to load the Python script that displays COBOL variables,"
...
...
@@ -63,9 +69,9 @@ uninstall:
rm
-f
$(DESTDIR)
/bin/cobcd.bat
$(MAKE)
-C
cobcd-st uninstall
$(MAKE)
-C
cobcd-sfix uninstall
$(MAKE)
-C
cobcd-rw uninstall
$(MAKE)
-C
python uninstall
# copy cbl-gdb to cblgdb-x.y, tarball the copy, and delete the copy
.PHONY
:
package
package
:
clean
...
...
@@ -80,4 +86,5 @@ package : clean
pregit
:
$(MAKE)
-C
cobcd-st pregit
$(MAKE)
-C
cobcd-sfix pregit
$(MAKE)
-C
cobcd-rw pregit
$(MAKE)
-C
python pregit
cobcd
View file @
66ab8ac9
...
...
@@ -63,7 +63,7 @@ print_help()
## Don't mess with it! #
###########################################################################
SCRIPT_VERSION
=
"[Version 3.
9
]"
SCRIPT_VERSION
=
"[Version 3.
10
]"
# This script, nominally named cobcd, packages up the process of compiling
# a single COBOL source module and processing it so that gdb can be used for
...
...
cobcd-rw/.gitignore
View file @
66ab8ac9
...
...
@@ -2,3 +2,4 @@
Release
Debug
x64
cobcd-rw
cobcd-rw/Makefile
0 → 100644
View file @
66ab8ac9
project
=
cobcd-rw
DESTDIR
?=
/usr/local
src
:=
$(
wildcard
*
.cpp
)
obj
:=
$(src:.cpp=.o)
dep
:=
$(obj:.o=.d)
# one dependency file for each source
$(project)
:
$(obj)
$(CPP)
-o
$@
$^
-include
$(dep)
# include all dep files in the makefile
# generate a dep files using the C preprocessor
%.d
:
%.cpp
@
$(CPP)
$(CFLAGS)
$<
-MM
-MT
$
(
@:.d
=
.o
)
>
$@
.PHONY
:
clean
clean
:
@
rm
-f
$(obj)
$(project)
$(dep)
.PHONY
:
pregit
pregit
:
astyle
-n
--style
=
kr
--indent
=
spaces
=
4
--break-return-type
*
.h
astyle
-n
--style
=
kr
--indent
=
spaces
=
4
--break-return-type
*
.cpp
.PHONY
:
install
install
:
mkdir
-p
$(DESTDIR)
/bin/
install
$(project)
$(DESTDIR)
/bin/
.PHONY
:
uninstall
uninstall
:
rm
-f
$(DESTDIR)
/bin/
$(project)
cobcd-sfix/Makefile
View file @
66ab8ac9
project
=
cobcd-sfix
CPP
=
g++
DESTDIR
?=
/usr/local
...
...
cobcd-st/Makefile
View file @
66ab8ac9
project
=
cobcd-st
CPP
=
g++
DESTDIR
?=
/usr/local
...
...
cobcd.bat
View file @
66ab8ac9
...
...
@@ -7,7 +7,7 @@ SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::## Don't mess with it! #
::###########################################################################
::
set
VERSION
=[
Version
3
.
9
]
set
VERSION
=[
Version
3
.
10
]
::
::
set
argC
=
0
...
...
python/cobcd.py
View file @
66ab8ac9
...
...
@@ -3204,7 +3204,7 @@ if 'gdb' in sys.modules :
## The text "Version x.x" has to appear in square brackets. #
## Don't mess with it! #
###########################################################################
print
(
'registering CPrint (Usage is "print <COBOL identifier>") [Version 3.
9
]'
)
print
(
'registering CPrint (Usage is "print <COBOL identifier>") [Version 3.
10
]'
)
self
.
Worker
=
CPrintWorker
()
self
.
TabFile
=
TabFileInformation
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment