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
merge the experimental x86_64 branch
[neatlibc.git]
/
Makefile
blob
53a637977d4e25a9acbcfa17d1ed8cfc25fc0ec5
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
# for x86_64 build
12
#ARCH = x86_64
13
#CC = ncc
14
#AS = fasm
15
16
CFLAGS
= -
Os
-
I.
17
18
all
:
start.o libc.a
19
20
%
.o
: %
.s
21
$(
AS
) $
^
>/
dev
/
null
22
%
.o
: %
.c
23
$(
CC
) -
c
$(
CFLAGS
) $
^
24
25
OBJS1
= $(
patsubst
%
.c
,%
.o
,$(
wildcard
*
.c
))
26
OBJS2
= $(
patsubst
%
.s
,%
.o
,$(
wildcard
$(
ARCH
)/*
.s
))
27
28
start.o
: $(
ARCH
)/
start.o
29
cp
$(
ARCH
)/
start.o .
30
libc.a
: $(
OBJS1
) $(
OBJS2
)
31
$(
AR
)
rcs
$
@
$
^
32
33
clean
:
34
rm
-
f
*
.o
*
.a x86
/*
.o arm
/*
.o x86_64
/*
.o