mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-18 21:02:34 +03:00
b648a77792
git-svn-id: svn://kolibrios.org@222 a494cfbc-eb01-0410-851d-a64ba20cac60
24 lines
621 B
Makefile
24 lines
621 B
Makefile
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))
|