kolibrios-fun/programs/develop/libraries/menuetlibc/src/Make.rules
CleverMouse 9757da66f4 menuetlibc: drop support for exotic configurations, it doesn't work anyway
git-svn-id: svn://kolibrios.org@5145 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-10-08 16:14:52 +00:00

58 lines
1.2 KiB
Plaintext

include $(MENUETDEV)/osrules.mak
.SUFFIXES: .asm;
AS = kos32-as
NASM = nasm
CPP = kos32-cpp
DEBUG = 0
.c.o:
$(MGCC) $*.c -o $*.o $(CFLAGS)
.cpp.o:
$(MGPP) $*.cpp -o $*.o $(CPPFLAGS)
.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 -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
depend:
$(MMKDEP) $(THIS_SRCS) > ./ldepend
ifeq ($(wildcard ./ldepend),)
check_ldepend:
echo Warning: ldepend not present in $(CURDIR)
else
check_ldepend:
include ldepend
endif