Blame Makefile.in

0efa8c
PACKAGE 		= @package@
0efa8c
NICKNAME 		= @nickname@
0efa8c
PROJECT_DIR 		= @project_dir@
a88b38
SOURCE_DIR 		= @source_dir@
0efa8c
GIT_REFERENCE_INDEX	= @git_reference_index@
0efa8c
CUSTOM_INSTALL_HEADERS  = @custom_install_headers@
0efa8c
AVOID_VERSION		= @avoid_version@
0efa8c
0efa8c
BUILD 			= @build@
0efa8c
HOST 			= @host@
980929
CCHOST 			= @cchost@
0efa8c
TARGET 			= @target@
0efa8c
ARCH 			= @arch@
0efa8c
COMPILER 		= @compiler@
0efa8c
TOOLCHAIN		= @toolchain@
0efa8c
SYSROOT 		= @sysroot@
0efa8c
CROSS_COMPILE 		= @cross_compile@
0efa8c
SHELL 			= @shell@
0efa8c
0efa8c
CFLAGS_COMMON 		= @cflags_common@
0efa8c
CFLAGS_DEBUG 		= @cflags_debug@
0efa8c
CFLAGS_CMDLINE 		= @cflags_cmdline@
0efa8c
CFLAGS_CONFIG 		= @cflags_config@
0efa8c
CFLAGS_SYSROOT 		= @cflags_sysroot@
0efa8c
CFLAGS_OS		= @cflags_os@
0efa8c
CFLAGS_SITE		= @cflags_site@
0efa8c
CFLAGS_PATH 		= @cflags_path@
0efa8c
CFLAGS_STRICT 		= @cflags_strict@
0efa8c
CFLAGS_UTIL 		= @cflags_util@
0efa8c
CFLAGS_LAST 		= @cflags_last@
0efa8c
CFLAGS_ONCE 		= @cflags_once@
0efa8c
0efa8c
LDFLAGS_COMMON 		= @ldflags_common@
0efa8c
LDFLAGS_DEBUG 		= @ldflags_debug@
0efa8c
LDFLAGS_CMDLINE 	= @ldflags_cmdline@
0efa8c
LDFLAGS_CONFIG 		= @ldflags_config@
0efa8c
LDFLAGS_SYSROOT 	= @ldflags_sysroot@
0efa8c
LDFLAGS_PATH 		= @ldflags_path@
0efa8c
LDFLAGS_STRICT 		= @ldflags_strict@
0efa8c
LDFLAGS_UTIL 		= @ldflags_util@
0efa8c
LDFLAGS_LAST 		= @ldflags_last@
0efa8c
LDFLAGS_ONCE 		= @ldflags_once@
0efa8c
0efa8c
PE_SUBSYSTEM 		= @pe_subsystem@
0efa8c
PE_IMAGE_BASE 		= @pe_image_base@
0efa8c
PE_CONFIG_DEFS  	= @pe_config_defs@
0efa8c
0efa8c
ELF_EH_FRAME 		= @elf_eh_frame@
0efa8c
ELF_HASH_STYLE 		= @elf_hash_style@
0efa8c
ELF_CONFIG_DEFS 	= @elf_config_defs@
0efa8c
0efa8c
PREFIX 			= @prefix@
0efa8c
EXEC_PREFIX 		= @exec_prefix@
0efa8c
BINDIR 			= @bindir@
d1de9e
SBINDIR 		= @sbindir@
0efa8c
LIBDIR 			= @libdir@
0efa8c
INCLUDEDIR 		= @includedir@
96a3a1
OLDINCLUDEDIR 		= @oldincludedir@
0efa8c
MANDIR 			= @mandir@
0efa8c
DOCDIR 			= @docdir@
0efa8c
LIBEXECDIR 		= @libexecdir@
0efa8c
96a3a1
SYSCONFDIR		= @sysconfdir@
96a3a1
SHAREDSTATEDIR		= @sharedstatedir@
96a3a1
LOCALSTATEDIR		= @localstatedir@
96a3a1
RUNSTATEDIR		= @runstatedir@
96a3a1
DATAROOTDIR		= @datarootdir@
96a3a1
DATADIR			= @datadir@
96a3a1
INFODIR			= @infodir@
96a3a1
LOCALEDIR		= @localedir@
96a3a1
HTMLDIR			= @htmldir@
96a3a1
DVIDIR			= @dvidir@
96a3a1
PDFDIR			= @pdfdir@
96a3a1
PSDIR			= @psdir@
96a3a1
0efa8c
NATIVE_CC 		= @native_cc@
0efa8c
NATIVE_OS 		= @native_os@
0efa8c
NATIVE_OS_BITS 		= @native_os_bits@
0efa8c
NATIVE_OS_UNDERSCORE	= @native_os_underscore@
0efa8c
0efa8c
USER_CC                 = @user_cc@
0efa8c
USER_CPP                = @user_cpp@
0efa8c
USER_CXX                = @user_cxx@
0efa8c
0efa8c
ALL_SHARED              = @all_shared@
0efa8c
ALL_STATIC              = @all_static@
0efa8c
DISABLE_FRONTEND	= @disable_frontend@
0efa8c
DISABLE_SHARED          = @disable_shared@
0efa8c
DISABLE_STATIC          = @disable_static@
0efa8c
0efa8c
all:
0efa8c
install:
0efa8c
shared:
0efa8c
static:
0efa8c
0efa8c
install-extras:
0efa8c
install-app-extras:
0efa8c
0efa8c
include $(PROJECT_DIR)/sysinfo/host/$(HOST).mk
0efa8c
include $(PROJECT_DIR)/sysinfo/compiler/$(COMPILER).mk
0efa8c
include $(PROJECT_DIR)/sysinfo/toolchain/$(TOOLCHAIN).mk
f079d8
include $(PROJECT_DIR)/sysinfo/os/$(OS).mk
0efa8c
0efa8c
include $(PROJECT_DIR)/project/osforce.mk
0efa8c
0efa8c
include $(PROJECT_DIR)/sofort/defs.mk
0efa8c
include $(PROJECT_DIR)/sofort/version.mk
0efa8c
include $(PROJECT_DIR)/sofort/custom.mk
0efa8c
0efa8c
include $(PROJECT_DIR)/project/tree.mk
0efa8c
include $(PROJECT_DIR)/project/depends.mk
0efa8c
include $(PROJECT_DIR)/project/headers.mk
0efa8c
include $(PROJECT_DIR)/project/common.mk
0efa8c
include $(PROJECT_DIR)/project/arch.mk
0efa8c
include $(PROJECT_DIR)/project/extras.mk
0efa8c
include $(PROJECT_DIR)/project/overrides.mk
0efa8c
0efa8c
0efa8c
0efa8c
$(APP_SRCS:%.c=%.o): CFLAGS_STATIC = $(CFLAGS_APP)
0efa8c
a88b38
src/%.lo: 	$(SOURCE_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
0efa8c
		$(CC) -c -o $@ $< $(CFLAGS_SHARED)
0efa8c
a88b38
src/%.o: 	$(SOURCE_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
0efa8c
		$(CC) -c -o $@ $< $(CFLAGS_STATIC)
0efa8c
0efa8c
lib/%$(OS_LIB_SUFFIX)$(VER_XYZ):
0efa8c
		$(CC) -shared -o $@ $^ $(LDFLAGS_SHARED)
0efa8c
0efa8c
lib/%$(OS_ARCHIVE_EXT):
0efa8c
		rm -f $@
0efa8c
		$(AR) rcs $@ $^
0efa8c
0efa8c
0efa8c
0efa8c
all:		package-shared package-static app
0efa8c
0efa8c
install:	package-install-app
0efa8c
install:	package-install-extras
0efa8c
install:	install-libs
0efa8c
0efa8c
app:		app-tag
0efa8c
0efa8c
app.tag:
0efa8c
		cp $(PACKAGE_APP) $(APP)
0efa8c
		touch app.tag
0efa8c
0efa8c
install-libs:	package-install-shared
0efa8c
install-libs:	package-install-static
0efa8c
0efa8c
install-headers-default:
0efa8c
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
0efa8c
		cp $(API_HEADERS) $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
0efa8c
0efa8c
install-shared:	shared install-lib install-implib
0efa8c
install-shared: package-install-soname package-install-solink
0efa8c
install-shared: install-headers
0efa8c
0efa8c
install-lib:	shared
0efa8c
		mkdir -p $(DESTDIR)$(LIBDIR)
0efa8c
		cp $(SHARED_LIB) $(DESTDIR)$(LIBDIR)
0efa8c
0efa8c
install-static:	static install-headers
0efa8c
		mkdir -p $(DESTDIR)$(LIBDIR)
0efa8c
		cp $(STATIC_LIB) $(DESTDIR)$(LIBDIR)
0efa8c
0efa8c
install-app:	app install-app-extras
0efa8c
		mkdir -p $(DESTDIR)$(BINDIR)
0efa8c
		cp $(APP) $(DESTDIR)$(BINDIR)
0efa8c
0efa8c
install-static-app:	static-app install-app-extras
0efa8c
			mkdir -p $(DESTDIR)$(BINDIR)
0efa8c
			cp $(STATIC_APP) $(DESTDIR)$(BINDIR)/$(NICKNAME)$(OS_APP_SUFFIX)
0efa8c
0efa8c
0efa8c
0efa8c
shared:		shared-lib implib
0efa8c
shared:		package-shared-soname package-shared-solink
0efa8c
0efa8c
static:		static-lib
0efa8c
0efa8c
shared-lib:	shared-objs $(SHARED_LIB)
0efa8c
0efa8c
shared-soname:	shared-lib $(SHARED_SONAME)
0efa8c
0efa8c
shared-solink:	shared-lib $(SHARED_SOLINK)
0efa8c
0efa8c
static-lib:	static-objs $(STATIC_LIB)
0efa8c
0efa8c
0efa8c
0efa8c
default-app:	version.tag static-objs $(DEFAULT_APP)
0efa8c
0efa8c
shared-app:	version.tag shared $(SHARED_APP)
0efa8c
0efa8c
static-app:	version.tag static-objs $(STATIC_APP)
0efa8c
0efa8c
0efa8c
0efa8c
shared-objs:	dirs $(SHARED_OBJS)
0efa8c
0efa8c
static-objs:	dirs $(STATIC_OBJS)
0efa8c
0efa8c
app-objs:	dirs $(APP_OBJS)
0efa8c
0efa8c
0efa8c
0efa8c
$(SHARED_LIB):	$(SHARED_OBJS)
0efa8c
0efa8c
$(STATIC_LIB):	$(STATIC_OBJS)
0efa8c
0efa8c
$(APP):		$(PACKAGE_APP)
0efa8c
0efa8c
$(DEFAULT_APP):	$(STATIC_OBJS) $(APP_OBJS)
0efa8c
		rm -f app.tag
0efa8c
		$(CC) -o $@ $^ $(LDFLAGS_APP)
0efa8c
0efa8c
$(SHARED_APP):	$(SHARED_LIB) $(APP_OBJS)
0efa8c
		rm -f app.tag
0efa8c
		$(CC) -o $@ $(APP_OBJS) -l$(PACKAGE) $(LDFLAGS_SHARED)
0efa8c
0efa8c
$(STATIC_APP):	$(STATIC_OBJS) $(APP_OBJS)
0efa8c
		rm -f app.tag
0efa8c
		$(CC) -static -o $@ $^ $(LDFLAGS_STATIC)
0efa8c
0efa8c
0efa8c
dirs: 		dirs.tag
0efa8c
0efa8c
dirs.tag:
0efa8c
		mkdir -p bin
0efa8c
		mkdir -p lib
0efa8c
		touch dirs.tag
0efa8c
980929
cchost:
980929
		$(PROJECT_DIR)/sysinfo/host/host.sh --compiler="$(CC)" --cflags="$(CFLAGS)"
980929
0efa8c
host.tag:	Makefile
0efa8c
		$(PROJECT_DIR)/sysinfo/host/host.sh --compiler="$(CC)" --cflags="$(CFLAGS)"
0efa8c
		touch host.tag
0efa8c
0efa8c
version.tag:	$(GIT_REFERENCE_INDEX)
0efa8c
		$(PROJECT_DIR)/sysinfo/version.sh	\
a88b38
			-s $(SOURCE_DIR)		\
0efa8c
			-o build/$(PACKAGE)_version.h	\
0efa8c
			-p $(PACKAGE)
0efa8c
		touch version.tag
0efa8c
0efa8c
distclean:	clean
0efa8c
		rm -f Makefile
0efa8c
0efa8c
clean:		clean-implib
0efa8c
		rm -f tree.tag
0efa8c
		rm -f dirs.tag
0efa8c
		rm -f host.tag
0efa8c
		rm -f version.tag
0efa8c
		rm -f app.tag
0efa8c
		rm -f $(SHARED_OBJS)
0efa8c
		rm -f $(STATIC_OBJS)
0efa8c
		rm -f $(APP_OBJS)
0efa8c
		rm -f $(SHARED_LIB)
0efa8c
		rm -f $(SHARED_SONAME)
0efa8c
		rm -f $(SHARED_SOLINK)
0efa8c
		rm -f $(STATIC_LIB)
0efa8c
		rm -f $(APP)
0efa8c
		rm -f $(DEFAULT_APP)
0efa8c
		rm -f $(SHARED_APP)
0efa8c
		rm -f $(STATIC_APP)
0efa8c
0efa8c
0efa8c
.display:	.display-project .display-env .display-tools .display-flags \
0efa8c
		.display-pe .display-elf .display-dirs .display-build \
0efa8c
		.display-config
0efa8c
0efa8c
.conf:		PAGER ?= less
0efa8c
.conf:
0efa8c
		$(MAKE) .display | $(PAGER)
0efa8c
0efa8c
.display-project:
0efa8c
		@echo PACKAGE:'                '$(PACKAGE)
0efa8c
		@echo NICKNAME:'               '$(NICKNAME)
0efa8c
		@echo PROJECT_DIR:'            '$(PROJECT_DIR)
ec7df6
		@echo SOURCE_DIR:'             '$(SOURCE_DIR)
0efa8c
		@echo BUILD_DIR:'              '$(CURDIR)
0efa8c
		@echo
0efa8c
0efa8c
.display-env:
0efa8c
		@echo BUILD:'                  '$(BUILD)
0efa8c
		@echo HOST:'                   '$(HOST)
980929
		@echo CCHOST:'                 '$(CCHOST)
0efa8c
		@echo TARGET:'                 '$(TARGET)
0efa8c
		@echo ARCH:'                   '$(ARCH)
0efa8c
		@echo COMPILER:'               '$(COMPILER)
0efa8c
		@echo TOOLCHAIN:'              '$(TOOLCHAIN)
0efa8c
		@echo SYSROOT:'                '$(SYSROOT)
0efa8c
		@echo CROSS_COMPILE:'          '$(CROSS_COMPILE)
0efa8c
		@echo SHELL:'                  '$(SHELL)
0efa8c
		@echo
0efa8c
0efa8c
.display-tools:
0efa8c
		@echo CC:'                     '$(CC)
0efa8c
		@echo CPP:'                    '$(CPP)
0efa8c
		@echo CXX:'                    '$(CXX)
0efa8c
		@echo
0efa8c
		@echo AS:'                     '$(AS)
0efa8c
		@echo AR:'                     '$(AR)
0efa8c
		@echo LD:'                     '$(LD)
0efa8c
		@echo NM:'                     '$(NM)
0efa8c
		@echo OBJDUMP:'                '$(OBJDUMP)
0efa8c
		@echo RANLIB:'                 '$(RANLIB)
0efa8c
		@echo SIZE:'                   '$(SIZE)
0efa8c
		@echo STRIP:'                  '$(STRIP)
0efa8c
		@echo STRINGS:'                '$(STRINGS)
0efa8c
		@echo
0efa8c
		@echo ADDR2LINE:'              '$(ADDR2LINE)
0efa8c
		@echo COV:'                    '$(COV)
0efa8c
		@echo CXXFILT'                 '$(CXXFILT)
0efa8c
		@echo ELFEDIT:'                '$(ELFEDIT)
0efa8c
		@echo OBJCOPY:'                '$(OBJCOPY)
0efa8c
		@echo READELF:'                '$(READELF)
0efa8c
		@echo
0efa8c
0efa8c
.display-flags:
0efa8c
		@echo CFLAGS_COMMON:'          '$(CFLAGS_COMMON)
0efa8c
		@echo CFLAGS_DEBUG:'           '$(CFLAGS_DEBUG)
0efa8c
		@echo CFLAGS_VERSION:'         '$(CFLAGS_VERSION)
0efa8c
		@echo CFLAGS_CMDLINE:'         '$(CFLAGS_CMDLINE)
0efa8c
		@echo CFLAGS_CONFIG:'          '$(CFLAGS_CONFIG)
0efa8c
		@echo CFLAGS_SYSROOT:'         '$(CFLAGS_SYSROOT)
0efa8c
		@echo CFLAGS_OS:'              '$(CFLAGS_OS)
0efa8c
		@echo CFLAGS_SITE:'            '$(CFLAGS_SITE)
0efa8c
		@echo CFLAGS_PATH:'            '$(CFLAGS_PATH)
0efa8c
		@echo CFLAGS_STRICT:'          '$(CFLAGS_STRICT)
0efa8c
		@echo CFLAGS_UTIL:'            '$(CFLAGS_UTIL)
0efa8c
		@echo CFLAGS_LAST:'            '$(CFLAGS_LAST)
0efa8c
		@echo CFLAGS_ONCE:'            '$(CFLAGS_ONCE)
0efa8c
		@echo
0efa8c
		@echo LDFLAGS_COMMON:'         '$(LDFLAGS_COMMON)
0efa8c
		@echo LDFLAGS_DEBUG:'          '$(LDFLAGS_DEBUG)
0efa8c
		@echo LDFLAGS_CMDLINE:'        '$(LDFLAGS_CMDLINE)
0efa8c
		@echo LDFLAGS_CONFIG:'         '$(LDFLAGS_CONFIG)
0efa8c
		@echo LDFLAGS_SYSROOT:'        '$(LDFLAGS_SYSROOT)
0efa8c
		@echo LDFLAGS_PATH:'           '$(LDFLAGS_PATH)
0efa8c
		@echo LDFLAGS_STRICT:'         '$(LDFLAGS_STRICT)
0efa8c
		@echo LDFLAGS_UTIL:'           '$(LDFLAGS_UTIL)
0efa8c
		@echo LDFLAGS_LAST:'           '$(LDFLAGS_LAST)
0efa8c
		@echo LDFLAGS_ONCE:'           '$(LDFLAGS_ONCE)
0efa8c
		@echo
0efa8c
0efa8c
.display-pe:
0efa8c
		@echo PE_SUBSYSTEM:'           '$(PE_SUBSYSTEM)
0efa8c
		@echo PE_IMAGE_BASE:'          '$(PE_IMAGE_BASE)
0efa8c
		@echo PE_CONFIG_DEFS:'         '$(PE_CONFIG_DEFS)
0efa8c
		@echo
0efa8c
0efa8c
.display-elf:
0efa8c
		@echo ELF_EH_FRAME:'           '$(ELF_EH_FRAME)
0efa8c
		@echo ELF_HASH_STYLE:'         '$(ELF_HASH_STYLE)
0efa8c
		@echo ELF_CONFIG_DEFS:'        '$(ELF_CONFIG_DEFS)
0efa8c
		@echo
0efa8c
0efa8c
.display-dirs:
0efa8c
		@echo PREFIX:'                 '$(PREFIX)
0efa8c
		@echo EXEC_PREFIX:'            '$(EXEC_PREFIX)
0efa8c
		@echo BINDIR:'                 '$(BINDIR)
d1de9e
		@echo SBINDIR:'                '$(SBINDIR)
0efa8c
		@echo LIBDIR:'                 '$(LIBDIR)
0efa8c
		@echo INCLUDEDIR:'             '$(INCLUDEDIR)
96a3a1
		@echo OLDINCLUDEDIR:'          '$(OLDINCLUDEDIR)
0efa8c
		@echo MANDIR:'                 '$(MANDIR)
0efa8c
		@echo DOCDIR:'                 '$(DOCDIR)
0efa8c
		@echo LIBEXECDIR:'             '$(LIBEXECDIR)
0efa8c
		@echo
0efa8c
96a3a1
.display-exdirs:
96a3a1
		@echo SYSCONFDIR'              '$(SYSCONFDIR)
96a3a1
		@echo SHAREDSTATEDIR'          '$(SHAREDSTATEDIR)
96a3a1
		@echo LOCALSTATEDIR'           '$(LOCALSTATEDIR)
96a3a1
		@echo RUNSTATEDIR'             '$(RUNSTATEDIR)
96a3a1
		@echo DATAROOTDIR'             '$(DATAROOTDIR)
96a3a1
		@echo DATADIR'                 '$(DATADIR)
96a3a1
		@echo INFODIR'                 '$(INFODIR)
96a3a1
		@echo LOCALEDIR'               '$(LOCALEDIR)
96a3a1
		@echo HTMLDIR'                 '$(HTMLDIR)
96a3a1
		@echo DVIDIR'                  '$(DVIDIR)
96a3a1
		@echo PDFDIR'                  '$(PDFDIR)
96a3a1
		@echo PSDIR'                   '$(PSDIR)
96a3a1
0efa8c
.display-build:
0efa8c
		@echo NATIVE_CC:'              '$(NATIVE_CC)
0efa8c
		@echo NATIVE_OS:'              '$(NATIVE_OS)
0efa8c
		@echo NATIVE_OS_BITS:'         '$(NATIVE_OS_BITS)
0efa8c
		@echo NATIVE_OS_UNDERSCORE:'   '$(NATIVE_OS_UNDERSCORE)
0efa8c
		@echo
0efa8c
		@echo USER_CC:'                '$(USER_CC)
0efa8c
		@echo USER_CPP:'               '$(USER_CPP)
0efa8c
		@echo USER_CXX:'               '$(USER_CXX)
0efa8c
		@echo
0efa8c
0efa8c
.display-config:
0efa8c
		@echo ALL_SHARED:'             '$(ALL_SHARED)
0efa8c
		@echo ALL_STATIC:'             '$(ALL_STATIC)
0efa8c
		@echo DISABLE_FRONTEND:'       '$(DISABLE_FRONTEND)
0efa8c
		@echo DISABLE_SHARED:'         '$(DISABLE_SHARED)
0efa8c
		@echo DISABLE_STATIC:'         '$(DISABLE_STATIC)
0efa8c
0efa8c
.display-host:
0efa8c
		@$(CC) $(CFLAGS) -dumpmachine
0efa8c
0efa8c
.display-cc:
0efa8c
		@echo $(CC)
0efa8c
0efa8c
.display-cflags:
0efa8c
		@echo $(CFLAGS)
0efa8c
0efa8c
980929
.PHONY:		cchost package-app \
980929
		all install shared static app \
0efa8c
		shared-objs shared-lib \
0efa8c
		shared-soname shared-solink \
0efa8c
		package-shared-soname package-shared-solink \
0efa8c
		static-objs static-lib \
0efa8c
		default-app shared-app static-app \
0efa8c
		install-shared install-static \
0efa8c
		install-soname install-solink \
0efa8c
		package-install-soname package-install-solink \
0efa8c
		install-headers install-app \
0efa8c
		install-headers-default install-headers-custom \
0efa8c
		clean distclean clean-implib version \
0efa8c
		.display .conf \
0efa8c
		.display-project .display-env .display-tools .display-flags \
0efa8c
		.display-pe .display-elf .display-dirs .display-build \
0efa8c
		implib implib-ver implib-soname implib-solink \
0efa8c
		install-implib install-implib-ver \
0efa8c
		install-implib-soname install-implib-solink