mirror of
https://github.com/schoebel/mars
synced 2024-12-13 02:05:44 +00:00
72 lines
1.9 KiB
Makefile
72 lines
1.9 KiB
Makefile
#
|
|
# Makefile for MARS
|
|
#
|
|
|
|
mars-objs := \
|
|
brick_say.o \
|
|
brick_mem.o \
|
|
brick.o \
|
|
mars_generic.o \
|
|
lib_log.o \
|
|
mars_net.o \
|
|
mars_server.o \
|
|
mars_client.o \
|
|
mars_aio.o \
|
|
mars_sio.o \
|
|
mars_bio.o \
|
|
mars_if.o \
|
|
mars_copy.o \
|
|
mars_trans_logger.o \
|
|
sy_old/sy_generic.o \
|
|
sy_old/sy_net.o \
|
|
sy_old/mars_proc.o \
|
|
sy_old/mars_light.o
|
|
|
|
obj-$(CONFIG_MARS_BIGMODULE) += mars.o
|
|
|
|
#### alternatives when building small individual modules
|
|
|
|
obj-$(CONFIG_MARS_DUMMY) += mars_dummy.o
|
|
obj-$(CONFIG_MARS_CHECK) += mars_check.o
|
|
obj-$(CONFIG_MARS_IF) += mars_if.o
|
|
obj-$(CONFIG_MARS_BIO) += mars_bio.o
|
|
obj-$(CONFIG_MARS_AIO) += mars_aio.o
|
|
obj-$(CONFIG_MARS_SIO) += mars_sio.o
|
|
obj-$(CONFIG_MARS_BUF) += mars_buf.o
|
|
obj-$(CONFIG_MARS_USEBUF) += mars_usebuf.o
|
|
obj-$(CONFIG_MARS_TRANS_LOGGER) += mars_trans_logger.o lib_log.o
|
|
obj-$(CONFIG_MARS_SERVER) += mars_server.o
|
|
obj-$(CONFIG_MARS_CLIENT) += mars_client.o
|
|
obj-$(CONFIG_MARS_COPY) += mars_copy.o
|
|
|
|
obj-$(CONFIG_MARS_LIGHT) += sy_old/mars_light.o \
|
|
brick.o brick_mem.o brick_say.o \
|
|
mars_generic.o sy_old/sy_generic.o \
|
|
mars_net.o sy_old/sy_net.o \
|
|
sy_old/mars_proc.o
|
|
|
|
ifdef CONFIG_DEBUG_KERNEL
|
|
|
|
KBUILD_CFLAGS += -fno-inline-functions -fno-inline-small-functions -fno-inline-functions-called-once
|
|
|
|
# This is currently not really used.
|
|
# We urge people to maintain it by including it in debug versions
|
|
# (so the compiler may throw any complaints)
|
|
|
|
mars-objs += \
|
|
mars_dummy.o \
|
|
mars_check.o \
|
|
mars_buf.o \
|
|
mars_usebuf.o \
|
|
|
|
endif
|
|
|
|
.PHONY FORCE: block/mars/buildtag.h
|
|
block/mars/buildtag.h:
|
|
set -e; exec > $@;\
|
|
cd block/mars;\
|
|
/bin/echo -e "/* Automatically generated -- DO NOT EDIT! */";\
|
|
/bin/echo -e "#define BUILDTAG \"$$(git log -1 --pretty='format:%H')\"";\
|
|
/bin/echo -e "#define BUILDHOST \"$$USER@$$HOSTNAME\"";\
|
|
/bin/echo -e "#define BUILDDATE \"$$(date '+%F %T')\""
|