mirror of
https://frontier.innolan.net/github/amigaos-cross-toolchain6.git
synced 2024-10-19 10:29:55 +00:00
Add some tests.
This commit is contained in:
+20
-6
@@ -1,12 +1,26 @@
|
|||||||
CC = m68k-amigaos-gcc -noixemul -s
|
CC = m68k-amigaos-gcc -noixemul -s
|
||||||
|
CXX = m68k-amigaos-g++ -noixemul -s
|
||||||
CFLAGS = -Os -Wall -fomit-frame-pointer
|
CFLAGS = -Os -Wall -fomit-frame-pointer
|
||||||
|
CXXFLAGS = -Os -Wall -fomit-frame-pointer
|
||||||
|
|
||||||
all: hello hello-mui test-mmu
|
BINS = hello-ks13 hello-ks20 hello-stdio hello-mui test-mmu
|
||||||
|
|
||||||
hello: CC += -fbaserel
|
all: $(BINS)
|
||||||
hello: CFLAGS += -m68000 -msmall-code
|
|
||||||
hello: LDLIBS = -lnix13
|
hello-ks13: CC += -fbaserel
|
||||||
hello: hello.c
|
hello-ks13: CFLAGS += -m68000 -msmall-code
|
||||||
|
hello-ks13: LDLIBS = -lnix13
|
||||||
|
hello-ks13: hello-ks13.c
|
||||||
|
|
||||||
|
hello-ks20: CC += -fbaserel
|
||||||
|
hello-ks20: CFLAGS += -m68000 -msmall-code
|
||||||
|
hello-ks20: hello-ks20.c
|
||||||
|
|
||||||
|
hello-stdio: CFLAGS += -m68020
|
||||||
|
hello-stdio: hello-stdio.c
|
||||||
|
|
||||||
|
hello-iostream: CXXFLAGS += -m68020
|
||||||
|
hello-iostream: hello-iostream.cpp
|
||||||
|
|
||||||
hello-mui: CC += -fbaserel
|
hello-mui: CC += -fbaserel
|
||||||
hello-mui: CFLAGS += -m68020 -msmall-code
|
hello-mui: CFLAGS += -m68020 -msmall-code
|
||||||
@@ -18,5 +32,5 @@ test-mmu: CFLAGS += -m68060 -msmall-code
|
|||||||
test-mmu: test-mmu.c
|
test-mmu: test-mmu.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f hello hello-mui test-mmu
|
rm -f $(BINS)
|
||||||
rm -f *.o *~
|
rm -f *.o *~
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
std::cout << "hello world!" << std::endl;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,6 @@
|
|||||||
|
#include <proto/dos.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
PutStr("Hello world!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
printf("hello world!\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user