1 CFLAGS
+= -I..
/include/powerpc
2 CFLAGS
+= -Wa
,-mregnames
-I
test/lib
3 CFLAGS
+= -ffreestanding
5 cstart
:= test/powerpc
/cstart.o
10 $(libcflat
): LDFLAGS
+= -nostdlib
12 # these tests do not use libcflat
14 test/powerpc
/spin.bin \
18 # theses tests use cstart.o, libcflat, and libgcc
20 test/powerpc
/exit.bin \
21 test/powerpc
/helloworld.bin
23 include config-powerpc-
$(PROCESSOR
).mak
26 all: kvmtrace kvmctl
$(libcflat
) $(simpletests
) $(tests
)
28 $(simpletests
): %.bin
: %.o
29 $(CC
) -nostdlib
$^
-Wl
,-T
,flat.lds
-o
$@
31 $(tests
): %.bin
: $(cstart
) %.o
$(libcflat
)
32 $(CC
) -nostdlib
$^
$(libgcc
) -Wl
,-T
,flat.lds
-o
$@
34 kvmctl_objs
= main-ppc.o iotable.o ..
/libkvm
/libkvm.a
37 $(RM
) $(simpletests
) $(tests
) $(cstart
)
38 $(RM
) $(patsubst %.bin
, %.elf
, $(simpletests
) $(tests
))
39 $(RM
) $(patsubst %.bin
, %.o
, $(simpletests
) $(tests
))