forked from KolibriOS/kolibrios
30da2a5328
git-svn-id: svn://kolibrios.org@4763 a494cfbc-eb01-0410-851d-a64ba20cac60
65 lines
1.3 KiB
Plaintext
Executable File
65 lines
1.3 KiB
Plaintext
Executable File
include $(MENUETDEV)/osrules.mak
|
|
|
|
.SUFFIXES: .asm;
|
|
|
|
AS = as
|
|
NASM = nasm
|
|
CPP = cpp
|
|
|
|
DEBUG = 0
|
|
|
|
.c.o:
|
|
$(MGCC) $*.c $*.o $(CFLAGS) $(GCC32OPT)
|
|
|
|
.cpp.o:
|
|
$(MGPP) $*.cpp $*.o $(CPPFLAGS) $(GCC32OPT)
|
|
|
|
.asm.o:
|
|
$(NASM) $*.asm -o $*.o -f $(ASMFMT)
|
|
|
|
.s.o:
|
|
$(CPP) -nostdinc -I$(MENUETDEV)/include $*.s -o $*.sx $(CSFLAGS) -DMENUETDEV=$(MENUETDEV) -D__DEV_CONFIG_H=\"$(MENUETDEV)/config.h\"
|
|
as $*.sx $(AS32OPT) -o $*.o
|
|
$(RM) $*.sx
|
|
|
|
ATHIS_LIBC_OBJS += $(subst .c,.o,$(filter %.c,$(THIS_SRCS))) \
|
|
$(subst .s,.o,$(filter %.s,$(THIS_SRCS))) \
|
|
$(subst .cpp,.o,$(filter %.cpp,$(THIS_SRCS)))
|
|
|
|
THIS_LIBC_OBJS = $(addprefix $(CURDIR)/,$(ATHIS_LIBC_OBJS))
|
|
|
|
export MENUET_LIBC_OBJS += $(THIS_LIBC_OBJS)
|
|
|
|
all: making check_ldepend $(ATHIS_LIBC_OBJS)
|
|
@$(MENUET_LIBC_TOPDIR)/m_echo $(MENUET_LIBC_TOPDIR)/tmp_make $(THIS_LIBC_OBJS)
|
|
|
|
making:
|
|
@echo --- Making in $(CURDIR) ---
|
|
|
|
clean:
|
|
$(RM) $(ATHIS_LIBC_OBJS)
|
|
ifdef ON_MINGW
|
|
@echo # nothing> ./ldepend
|
|
else
|
|
@echo "# nothing" > ./ldepend
|
|
endif
|
|
|
|
ifdef DJDIR
|
|
depend:
|
|
echo $(THIS_SRCS) > __tmp.1
|
|
$(MMKDEP) @__tmp.1 > ./ldepend
|
|
$(RM) __tmp.1
|
|
else
|
|
depend:
|
|
$(MMKDEP) $(THIS_SRCS) > ./ldepend
|
|
endif
|
|
|
|
ifeq ($(wildcard ./ldepend),)
|
|
check_ldepend:
|
|
echo Warning: ldepend not present in $(CURDIR)
|
|
else
|
|
check_ldepend:
|
|
|
|
include ldepend
|
|
endif
|