Subversion Repositories Kolibri OS

Rev

Rev 4973 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
include $(MENUETDEV)/osrules.mak
2
 
3
.SUFFIXES: .asm;
4
 
5145 clevermous 5
AS = kos32-as
4973 right-hear 6
NASM = nasm
5145 clevermous 7
CPP = kos32-cpp
4973 right-hear 8
 
9
DEBUG = 0
10
 
11
.c.o:
5145 clevermous 12
	$(MGCC) $*.c -o $*.o $(CFLAGS)
4973 right-hear 13
 
14
.cpp.o:
5145 clevermous 15
	$(MGPP) $*.cpp -o $*.o $(CPPFLAGS)
4973 right-hear 16
 
17
.asm.o:
18
	$(NASM) $*.asm -o $*.o -f $(ASMFMT)
19
 
20
.s.o:
21
	$(CPP) -nostdinc -I$(MENUETDEV)/include $*.s -o $*.sx $(CSFLAGS) -DMENUETDEV=$(MENUETDEV) -D__DEV_CONFIG_H=\"$(MENUETDEV)/config.h\"
5145 clevermous 22
	$(AS) $*.sx -o $*.o
4973 right-hear 23
	$(RM) $*.sx
24
 
25
ATHIS_LIBC_OBJS += $(subst .c,.o,$(filter %.c,$(THIS_SRCS))) \
26
	$(subst .s,.o,$(filter %.s,$(THIS_SRCS))) \
27
	$(subst .cpp,.o,$(filter %.cpp,$(THIS_SRCS)))
28
 
29
THIS_LIBC_OBJS = $(addprefix $(CURDIR)/,$(ATHIS_LIBC_OBJS))
30
 
31
export MENUET_LIBC_OBJS += $(THIS_LIBC_OBJS)
32
 
33
all: making check_ldepend $(ATHIS_LIBC_OBJS)
34
	@$(MENUET_LIBC_TOPDIR)/m_echo $(MENUET_LIBC_TOPDIR)/tmp_make $(THIS_LIBC_OBJS)
35
 
36
making:
37
	@echo --- Making in $(CURDIR) ---
38
 
39
clean:
40
	$(RM) $(ATHIS_LIBC_OBJS)
41
ifdef ON_MINGW
42
	@echo # nothing> ./ldepend
43
else
44
	@echo "# nothing" > ./ldepend
45
endif
46
 
47
depend:
48
	$(MMKDEP) $(THIS_SRCS) > ./ldepend
49
 
50
ifeq ($(wildcard ./ldepend),)
51
check_ldepend:
52
	echo Warning: ldepend not present in $(CURDIR)
53
else
54
check_ldepend:
55
 
56
include ldepend
57
endif