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
mad
concierge
Commits
e5931c0a
Commit
e5931c0a
authored
Jun 10, 2014
by
anthraxx
Browse files
adding simple makefile to build door challenge
parent
6128aef5
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
e5931c0a
*.out
/challenge/*.o
/doorchallenge
Makefile
0 → 100644
View file @
e5931c0a
TARGET
=
doorchallenge
CC
:=
gcc
LD
:=
$(CC)
LDLIBS
=
LDFLAGS
=
-Wl
,-O1,--sort-common,--as-needed,-z,relro
CFLAGS
=
-Wall
\
-Wextra
\
-Winit-self
\
-Wuninitialized
\
-Wfloat-equal
\
-Wint-to-pointer-cast
\
-pedantic
\
-O2
\
-fstack-protector-strong
all
:
$(TARGET)
$(TARGET)
:
challenge/challenge.o
$(LD)
$(LDFLAGS)
-o
$@
$^
$(LDLIBS)
challenge/%.o
:
challenge/%.c
$(CC)
$(CFLAGS)
-c
$<
-o
$@
clean
:
$(RM)
-rf
challenge/
*
.o
$(TARGET)
Write
Preview
Supports
Markdown
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