Subversion Repositories Kolibri OS

Rev

Rev 4763 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1882 clevermous 1
include $(MENUETDEV)/osrules.mak
2
 
3
.SUFFIXES: .asm;
4
 
5
AS = as
6
NASM = nasm
7
CPP = cpp
8
 
9
DEBUG = 0
10
 
11
.c.o:
12
	$(MGCC) $*.c $*.o $(CFLAGS) $(GCC32OPT)
13
 
14
.cpp.o:
15
	$(MGPP) $*.cpp $*.o $(CPPFLAGS) $(GCC32OPT)
16
 
17
.asm.o:
18
	$(NASM) $*.asm -o $*.o -f $(ASMFMT)
19
 
20
.s.o:
4763 right-hear 21
	$(CPP) -nostdinc -I$(MENUETDEV)/include $*.s -o $*.sx $(CSFLAGS) -DMENUETDEV=$(MENUETDEV) -D__DEV_CONFIG_H=\"$(MENUETDEV)/config.h\"
4764 right-hear 22
	$(AS) $*.sx $(AS32OPT) -o $*.o
1882 clevermous 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
ifdef DJDIR
48
depend:
49
	echo $(THIS_SRCS) > __tmp.1
50
	$(MMKDEP) @__tmp.1 > ./ldepend
51
	$(RM) __tmp.1
52
else
53
depend:
54
	$(MMKDEP) $(THIS_SRCS) > ./ldepend
55
endif
56
 
57
ifeq ($(wildcard ./ldepend),)
58
check_ldepend:
59
	echo Warning: ldepend not present in $(CURDIR)
60
else
61
check_ldepend:
62
 
63
include ldepend
64
endif