Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 221 → Rev 222

/programs/develop/metcc/trunk/libc/compile.js
File deleted
\ No newline at end of file
/programs/develop/metcc/trunk/libc/make.cfg
File deleted
\ No newline at end of file
/programs/develop/metcc/trunk/libc/build.cmd
File deleted
\ No newline at end of file
/programs/develop/metcc/trunk/libc/clean.cmd
1,2 → 1,2
cscript cscript compile.js clean
mingw32-make clean
pause
/programs/develop/metcc/trunk/libc/make.cmd
0,0 → 1,2
mingw32-make
pause
/programs/develop/metcc/trunk/libc/makefile
0,0 → 1,23
INCLUDE = include
LIBNAME = melibc.a
CC = gcc
CFLAGS = -I$(INCLUDE) -nostdinc -DGNUC
DIRS := file mesys string mem
 
##############################################################
#files := $(foreach dir,$(DIRS),$(dir)/$(wildcard $(dir)/*))
asmfiles := $(foreach dir,$(DIRS),$(patsubst %.asm, %.o, $(wildcard $(dir)/*.asm)))
cfiles := $(foreach dir,$(DIRS),$(patsubst %.c, %.o, $(wildcard $(dir)/*.c)))
 
.PHONY: clean all
 
all: $(cfiles) $(asmfiles)
ar -ru $(LIBNAME) $^
 
$(cfiles): $(INCLUDE)/*.h
 
$(asmfiles):
fasm $*.asm $*.o
 
clean:
del /F /Q $(subst /,\,$(cfiles)) $(subst /,\,$(asmfiles))
/programs/develop/metcc/trunk/readme.txt
1,4 → 1,12
The main file of metcc is "tcc.c". It certainly can be compiled by MinGW Studio.
In order to compile MenuetOS program you must have start.o, metcc.exe in the same
directory. The command line should be of type "metcc.exe program.c melibc.a -oprogram".
In order to compile "melibc.a" you should configure paths is compile.js and run it.
In order to compile "melibc.a" you should configure paths is compile.js and run it.
------------------------------------------------------------------------------------
Äëÿ êîìïèëÿöèè melibc íåîáõîäèìî çàïóñòèòü ñêðèïò libc/make.cmd
ïî óìîë÷àíèþ ñ÷èòàåòñÿ ÷òî â ïåðåìåííîé îêðóæåíèÿ PATH ó âàñ óêàçàí ïóòü ê ïàêåòó mingw32
è ê àññåìáëåðó fasm.
------------------------------------------------------------------------------------
Äëÿ áîëåå ïîäðîáíûõ èíñòðóêöèé îáðàùàòåñü íà ôîðóì â òåìó
http://meos.sysbin.com/viewtopic.php?t=565&highlight=metcc
For more help go to link above