Subversion Repositories Kolibri OS

Rev

Rev 8280 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8280 Rev 8315
Line 1... Line 1...
1
INCLUDE = include
1
INCLUDE = include
2
LIBSFORBUILD = math
2
LIBSFORBUILD = math
3
LIBNAME = libck.a
3
LIBNAME = libck.a
4
CC = ../bin/kos32-tcc
4
CC = ../bin/kos32-tcc
5
CFLAGS = -I$(INCLUDE) -m32 -nostdinc -nostdlib -DGNUC
5
CFLAGS = -I$(INCLUDE) -m32 -nostdinc -nostdlib -DGNUC
6
DIRS := stdio memory kolibrisys string stdlib math dlfcn libgen fs
6
DIRS := stdio memory kolibrisys string stdlib math dlfcn libgen fs net
Line 7... Line 7...
7
 
7
 
8
##############################################################
8
##############################################################
9
#files := $(foreach dir,$(DIRS),$(dir)/$(wildcard $(dir)/*))
9
#files := $(foreach dir,$(DIRS),$(dir)/$(wildcard $(dir)/*))
10
asmfiles := $(foreach dir,$(DIRS),$(patsubst %.asm, %.o, $(wildcard $(dir)/*.asm)))
10
asmfiles := $(foreach dir,$(DIRS),$(patsubst %.asm, %.o, $(wildcard $(dir)/*.asm)))
Line 17... Line 17...
17
else
17
else
18
doClean = rm $(cfiles) $(asmfiles)
18
doClean = rm $(cfiles) $(asmfiles)
19
endif
19
endif
Line 20... Line 20...
20
 
20
 
21
all: $(cfiles) $(asmfiles)
21
all: $(cfiles) $(asmfiles)
Line 22... Line 22...
22
	ar -ru $(LIBNAME) $^
22
	ar -rcs $(LIBNAME) $^
Line 23... Line 23...
23
 
23
 
24
$(cfiles): $(INCLUDE)/*.h
24
$(cfiles): $(INCLUDE)/*.h