Commit 66ab8ac9 authored by rdubner's avatar rdubner
Browse files

Create cobcd-rw/Makefile and minor related changes to other Makefiles

parent 25e6eaf5
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 "\033[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
......@@ -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
......
......@@ -2,3 +2,4 @@
Release
Debug
x64
cobcd-rw
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)
project=cobcd-sfix
CPP = g++
DESTDIR ?=/usr/local
......
project=cobcd-st
CPP = g++
DESTDIR ?=/usr/local
......
......@@ -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
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment