repo.or.cz
/
neatlibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
stdio.h: add fopen() and fclose()
[neatlibc.git]
/
Makefile
blob
de02e206ff5758118f4573c735bec13726b56b7c
1
# for x86 build
2
ARCH
=
x86
3
CC
=
ncc
4
AS
=
fasm
5
6
# for arm build
7
#ARCH = arm
8
#CC = ncc
9
#AS = neatas
10
11
CFLAGS
= -
Os
-
I.
12
13
all
:
start.o libc.a
14
15
%
.o
: %
.s
16
$(
AS
) $
^
>/
dev
/
null
17
%
.o
: %
.c
18
$(
CC
) $(
CFLAGS
) $
^
19
20
OBJS
= $(
patsubst
%
.c
,%
.o
,$(
wildcard
*
.c
))
21
OBJS2
= $(
patsubst
%
.s
,%
.o
,$(
wildcard
$(
ARCH
)/*
.s
))
22
23
start.o
: $(
ARCH
)/
start.o
24
cp
$(
ARCH
)/
start.o .
25
libc.a
: $(
OBJS
) $(
OBJS2
)
26
$(
AR
)
rcs
$
@
$
^
27
28
clean
:
29
rm
-
f
*
.o
*
.a x86
/*
.o arm
/*
.o