Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nofib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
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
Glasgow Haskell Compiler
nofib
Commits
88658e52
Commit
88658e52
authored
Nov 26, 1999
by
simonpj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 1999-11-26 10:28:00 by simonpj]
Define NOFIB_PROG_WAY
parent
d05a3049
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
mk/paths.mk
mk/paths.mk
+6
-3
mk/target.mk
mk/target.mk
+10
-10
No files found.
mk/paths.mk
View file @
88658e52
...
...
@@ -8,12 +8,15 @@
#################################################################################
# Define NOFIB_PROG. In ..../nofib/imaginary/exp3_8, PROG is exp3_8 by default.
# Define NOFIB_PROG and NOFIB_PROG_WAY.
# In ..../nofib/imaginary/exp3_8, NOFIB_PROG is exp3_8 by default.
# and for way w NOFIB_PROG_WAY is exp3_8_w
#
NOFIB_PROG
=
$(
notdir
$(
shell
pwd
))
$(_way)
NOFIB_PROG
=
$(
notdir
$(
shell
pwd
))
NOFIB_PROG_WAY
=
$(NOFIB_PROG)$(_way)
# Eventually, have the binary purged
CLEAN_FILES
+=
$(NOFIB_PROG)
CLEAN_FILES
+=
$(NOFIB_PROG
_WAY
)
#
# If tests are expected to end in compilation failure,
...
...
mk/target.mk
View file @
88658e52
...
...
@@ -28,23 +28,23 @@ endif
# Bogosity needed here to cope with .exe suffix for strip & size files.
# (shouldn't have to be our problem.)
ifneq
"$(HC_FAIL)" "YES"
$(NOFIB_PROG)
:
$(OBJS)
$(NOFIB_PROG
_WAY
)
:
$(OBJS)
@
echo
==
nofib
==
$(NOFIB_PROG)
:
time
to
link
$(NOFIB_PROG)
follows...
@
$(TIME)
$(HC)
$(HC_OPTS)
-o
$@
$^
$(LIBS)
endif
ifneq
"$(NOFIB_PROG)" ""
size
::
$(NOFIB_PROG)
@
$(STRIP)
$(NOFIB_PROG)$(exeext)
ifneq
"$(NOFIB_PROG
_WAY
)" ""
size
::
$(NOFIB_PROG
_WAY
)
@
$(STRIP)
$(NOFIB_PROG
_WAY
)$(exeext)
@
echo
==
nofib
==
$(NOFIB_PROG)
: size of
$(NOFIB_PROG)
follows...
@
$(SIZE)
$(NOFIB_PROG)$(exeext)
@
$(SIZE)
$(NOFIB_PROG
_WAY
)$(exeext)
runtests
::
$(NOFIB_PROG) size
@
echo
==
nofib
==
$
<
:
time
to run
$<
follows...
runtests
::
$(NOFIB_PROG
_WAY
) size
@
echo
==
nofib
==
$
(NOFIB_PROG)
:
time
to run
$(NOFIB_PROG)
follows...
@
$(TIME)
$(RUNTEST)
./
$<
\
$(
addprefix
-i
,
$(
wildcard
$(
subst
$(_way)
,,
$(NOFIB_PROG)
)
.stdin
))
\
$(
addprefix
-o1
,
$(
wildcard
$(
subst
$(_way)
,,
$(NOFIB_PROG)
)
.stdout
*
))
\
$(
addprefix
-o2
,
$(
wildcard
$(
subst
$(_way)
,,
$(NOFIB_PROG)
)
.stderr
*
))
\
$(
addprefix
-i
,
$(
wildcard
$(NOFIB_PROG
)
.stdin
))
\
$(
addprefix
-o1
,
$(
wildcard
$(
NOFIB_PROG
)
.stdout
*
))
\
$(
addprefix
-o2
,
$(
wildcard
$(
NOFIB_PROG
)
.stderr
*
))
\
$(RUNTEST_OPTS)
else
size
::
...
...
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