Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeSamples
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Dominik Deisenroth
CodeSamples
Commits
ca222f55
Commit
ca222f55
authored
5 years ago
by
Ronald Charles Moore
Browse files
Options
Downloads
Patches
Plain Diff
tweeked Makefile
parent
21999010
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recursiveDescentParsers/cplusplus/interpret++/Makefile
+12
-6
12 additions, 6 deletions
recursiveDescentParsers/cplusplus/interpret++/Makefile
with
12 additions
and
6 deletions
recursiveDescentParsers/cplusplus/interpret++/Makefile
+
12
−
6
View file @
ca222f55
...
@@ -48,21 +48,27 @@ all: $(PROGS)
...
@@ -48,21 +48,27 @@ all: $(PROGS)
# http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/
# http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/
# ... and then fixed, and fixed, and fixed some more.
# ... and then fixed, and fixed, and fixed some more.
DEPDIR
:=
.deps
DEPDIR
:=
.deps
# Broken: DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
# From URL: DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.d
DEPFLAGS
=
-MMD
-MF
$(
DEPDIR
)
/
$*
.d
# Simpler, better...
DEPFLAGS
=
-MMD
-MP
-MF
$(
DEPDIR
)
/
$*
.d
# include dep files, if they exist (minus says don't complain if they don't)
DEPS
:=
$(
OBJS:%.o
=
$(
DEPDIR
)
/%.d
)
DEPS
:=
$(
OBJS:%.o
=
$(
DEPDIR
)
/%.d
)
#include the deps (minus says don't complain if they don't)
-include
$(DEPS)
-include
$(DEPS)
%.o
:
%.cpp %.d
# %.o $(DEPDIR)/%.d : %.cpp $(DEPDIR)
$(
CC
)
-c
$(
CPPFLAGS
)
$(
DEPFLAGS
)
-o
$@
$<
%.o
:
%.cpp $(DEPDIR)
$(
CC
)
-c
$(
CPPFLAGS
)
$(
DEPFLAGS
)
-o
$*
.o
$*
.cpp
# Make depdir if it doesn't exist...
# Make depdir if it doesn't exist...
$(DEPDIR)
:
; @mkdir -p $@
$(DEPDIR)
:
; @mkdir -p $@
## Now, the targets -- the things that will get made!
# generate dep files. Note missing "-o" to keep from generating them too
# $(DEPDIR)/%.d : $(DEPDIR)
# $(CC) -c $(CPPFLAGS) $(DEPFLAGS) $*.cpp
## Now, the REAL targets -- the things that will get made!
$(PROGS)
:
$(OBJS)
$(PROGS)
:
$(OBJS)
$(
CC
)
$(
CPPFLAGS
)
$(
OBJS
)
$(
LIBS
)
-o
$@
$(
CC
)
$(
CPPFLAGS
)
$(
OBJS
)
$(
LIBS
)
-o
$@
...
...
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