Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
51f32f7d
Commit
51f32f7d
authored
2 months ago
by
James K. Lowden
Browse files
Options
Downloads
Patches
Plain Diff
minimize dependency list for generated .c files
parent
91be4c1a
No related branches found
No related tags found
No related merge requests found
Pipeline
#2334
passed
2 months ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gcc/cobol/Make-lang.in
+82
-4
82 additions, 4 deletions
gcc/cobol/Make-lang.in
with
82 additions
and
4 deletions
gcc/cobol/Make-lang.in
+
82
−
4
View file @
51f32f7d
...
@@ -161,9 +161,14 @@ gcobol$(exeext): \
...
@@ -161,9 +161,14 @@ gcobol$(exeext): \
# First, files needed for parsing:
# First, files needed for parsing:
# Since we didn't attempt to automate determining .h prerequisites for
# To establish prerequisites for parse.o, cdf.o, and scan.o,
# parse.y, cdf.y, and scan.l, and because some of the .h files reference each
# 1. capture the "make -n" output
# other, I opted for the nuclear option: RJD
# 2. eliminate compiler options, leaving only preprocessor options (-D and -I)
# 3. add -E -MM
#
# Below is postprocessed: the files are one per line, used "realpath
# --relative-to=$PWD" to rationalize them, and sorted.
ALL_H_FILES
=
$(
wildcard
$(
srcdir
)
/cobol/
*
.h
)
$(
wildcard
$(
srcdir
)
/../libgcobol/
*
.h
)
ALL_H_FILES
=
$(
wildcard
$(
srcdir
)
/cobol/
*
.h
)
$(
wildcard
$(
srcdir
)
/../libgcobol/
*
.h
)
cobol/parse.c
:
cobol/parse.y $(ALL_H_FILES)
cobol/parse.c
:
cobol/parse.y $(ALL_H_FILES)
...
@@ -178,7 +183,80 @@ cobol/cdf.c: cobol/cdf.y $(ALL_H_FILES)
...
@@ -178,7 +183,80 @@ cobol/cdf.c: cobol/cdf.y $(ALL_H_FILES)
cobol/scan.c
:
cobol/scan.l $(ALL_H_FILES)
cobol/scan.c
:
cobol/scan.l $(ALL_H_FILES)
$(
LEX
)
-o
$@
$(
LFLAGS
)
$<
$(
LEX
)
-o
$@
$(
LFLAGS
)
$<
cobol/scan.o
:
cobol/parse.c
cdf.o
:
cobol/cdf.c
\
../../gcc/cobol/cbldiag.h
\
../../gcc/cobol/cdfval.h
\
../../gcc/cobol/copybook.h
\
../../gcc/cobol/symbols.h
\
../../gcc/cobol/util.h
\
../../libgcobol/common-defs.h
\
../../libgcobol/ec.h
\
../../libgcobol/ec.h
\
cobol/cdf.h
\
include/limits.h
\
include/stdint.h
\
include/syslimits.h
parse.o
:
cobol/parse.c
\
../../gcc/cobol/cbldiag.h
\
../../gcc/cobol/cdfval.h
\
../../gcc/cobol/cobol-system.h
\
../../gcc/cobol/exceptg.h
\
../../gcc/cobol/genapi.h
\
../../gcc/cobol/genapi.h
\
../../gcc/cobol/inspect.h
\
../../gcc/cobol/inspect.h
\
../../gcc/cobol/parse_ante.h
\
../../gcc/cobol/parse_util.h
\
../../gcc/cobol/symbols.h
\
../../gcc/cobol/util.h
\
../../gcc/hwint.h
\
../../gcc/system.h
\
../../include/ansidecl.h
\
../../include/ansidecl.h
\
../../include/filenames.h
\
../../include/hashtab.h
\
../../include/libiberty.h
\
../../include/safe-ctype.h
\
../../libgcobol/common-defs.h
\
../../libgcobol/ec.h
\
../../libgcobol/ec.h
\
../../libgcobol/exceptl.h
\
../../libgcobol/io.h
\
auto-host.h
\
cobol/parse.h
\
config.h
scan.o
:
cobol/scan.c
\
../../gcc/cobol/cbldiag.h
\
../../gcc/cobol/cdfval.h
\
../../gcc/cobol/cobol-system.h
\
../../gcc/cobol/copybook.h
\
../../gcc/cobol/dts.h
\
../../gcc/cobol/inspect.h
\
../../gcc/cobol/lexio.h
\
../../gcc/cobol/scan_ante.h
\
../../gcc/cobol/scan_post.h
\
../../gcc/cobol/symbols.h
\
../../gcc/cobol/symbols.h
\
../../gcc/cobol/util.h
\
../../gcc/hwint.h
\
../../gcc/system.h
\
../../include/ansidecl.h
\
../../include/ansidecl.h
\
../../include/filenames.h
\
../../include/hashtab.h
\
../../include/libiberty.h
\
../../include/safe-ctype.h
\
../../libgcobol/common-defs.h
\
../../libgcobol/ec.h
\
../../libgcobol/ec.h
\
../../libgcobol/exceptl.h
\
../../libgcobol/io.h
\
auto-host.h
\
cobol/cdf.h
\
cobol/parse.h
\
config.h
# And the cobol1.exe front end
# And the cobol1.exe front end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment