repo.or.cz
/
glg-sh.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial commit
[glg-sh.git]
/
Makefile
blob
0780f66e0d5cb90d3551accaedca26180279e66d
1
TARGET
=
sh
2
CC
=
gcc
3
CFLAGS
= -
O2
-
Wall
-
Wextra
-
Werror
-
std
=
c99
-
pedantic
-
pedantic-errors
4
5
OBJS
= $(
patsubst
%
.c
,%
.o
,$(
wildcard
*
.c
))
6
7
$(
TARGET
): $(
OBJS
)
8
$(
CC
) $(
CFLAGS
) -
o
$(
TARGET
) $(
OBJS
)
9
10
%
.o
: %
.c
11
$(
CC
) $(
CFLAGS
) -
c
$< -
o
$
@
12
13
clean
:
14
rm
-
f
*
.o
15
rm
-
f
$(
TARGET
)