Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Lehre
/
PIN3_test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
42d8d51d
authored
Nov 06, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Makefile.
parent
48b29bd4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
Makefile
+22
-0
No files found.
Makefile
0 → 100644
View file @
42d8d51d
NAME
=
testproject
CC
=
clang
CFLAGS
=
-Wall
-Werror
-O3
LD
=
clang
LDFLAGS
=
-lm
LIBS
=
SRC
=
$
(
wildcard
*
.c
)
OBJ
=
$
(
patsubst %.c,%.o,
$(SRC)
)
.PHONY
:
all clean
all
:
$(NAME)
$(NAME)
:
$(OBJ)
$(LD)
-o
$@
$(LDFLAGS)
$^
$(LIBS)
%.o
:
%.c
$(CC)
-c
$(CFLAGS)
$^
clean
:
rm
-f
$(NAME)
$(OBJ)
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