kolibrios/contrib/kolibri-libc/samples/Makefile
turbocat 504bda29b5 kolibri-libc:
- Added shell_printf
- Added shell functions to export table.
- Fixed  libc.obj build(use mingw)
- Removed generated libc.obj-loader files

git-svn-id: svn://kolibrios.org@8632 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-03-03 20:00:50 +00:00

28 lines
624 B
Makefile

KGCC = ../linuxtools/kgcc
KLD = ../linuxtools/kld
KPACK = kpack
KTCC=../../../programs/develop/ktcc/trunk/bin/kos32-tcc
KTCC_FLAGS = -nostdlib -stack=1048576 -I$(KLIBC)/source/include -L$(KLIBC)/lib $(KLIBC)/lib/crt0.o
ifndef NAME
NAME = basic_gui
endif
static_kgcc:
$(KGCC) $(NAME).c
$(KLD) $(NAME).o -o $(NAME) -lc
$(KPACK) $(NAME)
static_tcc:
$(KTCC) $(KTCC_FLAGS) $(NAME).c -o $(NAME) -lc
$(KPACK) $(NAME)
dynamic_kgcc:
$(KGCC) -D_DYNAMIC $(NAME).c
$(KLD) $(NAME).o -o $(NAME) -lc.obj
$(KPACK) $(NAME)
dynamic_tcc:
$(KTCC) $(KTCC_FLAGS) -D_DYNAMIC $(NAME).c -o $(NAME)_dyn -lc.obj
$(KPACK) $(NAME)_dyn