Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mart Lubbers
CleanSerial
Commits
e883e832
Commit
e883e832
authored
Feb 06, 2017
by
Mart Lubbers
Browse files
fix makefile forgood with an ugly hack
parent
9ccc9f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
e883e832
CLEAN_HOME
?=
/opt/clean
GCCVERSIONGTEQ6
:=
$(
shell
expr
`
gcc
-dumpversion
|
cut
-f1
-d
.
`
\>
=
6
)
test
:
test.icl TTY.icl TTY.dcl Clean
\
System
\
Files/ctty.o
if
hash
gcc-5 2>/dev/null
;
\
then
clm
-dynamics
-l
-no-pie
-I
$(CLEAN_HOME)
/lib/Dynamics
$(
basename
$<
)
-o
$@
;
\
else
clm
-dynamics
-I
$(CLEAN_HOME)
/lib/Dynamics
$(
basename
$<
)
-o
$@
;
\
fi
ifeq
"$(GCCVERSIONGTEQ6)" "1"
clm
-l
-no-pie
-I
$(CLEAN_HOME)
/lib/Dynamics
$(
basename
$<
)
-o
$@
else
clm
-I
$(CLEAN_HOME)
/lib/Dynamics
$(
basename
$<
)
-o
$@
endif
Clean\ System\ Files/ctty.o
:
tty.c
if
hash
gcc-5 2>/dev/null
;
\
then
gcc-5
-DDEBUG
-c
$<
-o
"
$@
"
;
\
else
gcc
-DDEBUG
-c
$<
-o
"
$@
"
;
\
fi
ifeq
"$(GCCVERSIONGTEQ6)" "1"
gcc-5
-DDEBUG
-c
$<
-o
"
$@
"
else
gcc
-DDEBUG
-c
$<
-o
"
$@
"
endif
clean
:
$(RM)
-r
Clean
\
System
\
Files/
*
test
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