repo.or.cz
/
neatcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
int: load with immediate only if supported by the architecture
[neatcc.git]
/
Makefile
blob
b42a4810243e8056da403c0f5fa34f405dd4a58c
1
# output architecture: x64, x86, arm
2
OUT
=
x64
3
4
CC
=
cc
5
CFLAGS
= -
Wall
-
O2
-
DNEATCC_
`echo $(OUT) | tr xarm XARM`
6
LDFLAGS
=
7
8
OBJS
=
ncc.o tok.o out.o
cpp
.o gen.o int.o reg.o mem.o
$(
OUT
)
.o
9
10
all
:
ncc
11
%
.o
: %
.c ncc.h
12
$(
CC
) -
c
$(
CFLAGS
) $<
13
ncc
: $(
OBJS
)
14
$(
CC
) -
o
$
@
$(
OBJS
) $(
LDFLAGS
)
15
clean
:
16
rm
-
f
*
.o ncc