- Removed melibc in ktcc

git-svn-id: svn://kolibrios.org@8404 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
superturbocat2001 2020-12-14 12:27:58 +00:00
parent ccc4de1b67
commit 5b3b09698f
4 changed files with 1 additions and 36 deletions

View File

@ -14,7 +14,7 @@ all:
../bin/kos32-tcc dir_example.c -lck -o dir_example.kex -I ../libc/include ../bin/kos32-tcc dir_example.c -lck -o dir_example.kex -I ../libc/include
../bin/kos32-tcc net/tcpsrv_demo.c -lck -o net/tcpsrv_demo.kex -I ../libc/include ../bin/kos32-tcc net/tcpsrv_demo.c -lck -o net/tcpsrv_demo.kex -I ../libc/include
../bin/kos32-tcc net/nslookup.c -lck -lnetwork -o net/nslookup.kex -I ../libc/include ../bin/kos32-tcc net/nslookup.c -lck -lnetwork -o net/nslookup.kex -I ../libc/include
../bin/kos32-tcc getopt_ex.c -lck -o getopt_ex -I ../libc/include ../bin/kos32-tcc getopt_ex.c -lck -o getopt_ex.kex -I ../libc/include
clean: clean:
rm *.kex rm *.kex

View File

@ -1,3 +0,0 @@
MENUETDEV = $(abspath ../../../../../libraries/menuetlibc)
all:
kos32-tcc -o hello.kex hello.c -lmelibc -I $(MENUETDEV)/include

View File

@ -1,32 +0,0 @@
#include <menuet/os.h>
char title[] = "Menuetlibc in TinyC";
char string[] = "Text";
void draw_window(void)
{
// start redraw
__menuet__window_redraw(1);
// define&draw window
__menuet__define_window(10,40,300,150,0x33FFFFFF,0,(__u32)title);
// display string
__menuet__write_text(30,10,0x80000000,string,0);
// end redraw
__menuet__window_redraw(2);
}
int main()
{
draw_window();
for (;;)
{
switch (__menuet__wait_for_event())
{
case 1:
draw_window();
break;
case 3:
return;
}
}
}