Blame Makefile.in

fa897a
PACKAGE 		= @package@
fa897a
PROJECT_DIR 		= @project_dir@
fa897a
fa897a
BUILD 			= @build@
fa897a
HOST 			= @host@
fa897a
TARGET 			= @target@
fa897a
ARCH 			= @arch@
09d3a4
COMPILER 		= @compiler@
f47035
TOOLCHAIN		= @toolchain@
fa897a
SYSROOT 		= @sysroot@
fa897a
CROSS_COMPILE 		= @cross_compile@
fa897a
SHELL 			= @shell@
fa897a
fa897a
CFLAGS_DEBUG 		= @cflags_debug@
fa897a
CFLAGS_COMMON 		= @cflags_common@
fa897a
CFLAGS_CMDLINE 		= @cflags_cmdline@
fa897a
CFLAGS_CONFIG 		= @cflags_config@
fa897a
CFLAGS_SYSROOT 		= @cflags_sysroot@
fa897a
CFLAGS_PATH 		= @cflags_path@
fa897a
fa897a
LDFLAGS_DEBUG 		= @ldflags_debug@
fa897a
LDFLAGS_COMMON 		= @ldflags_common@
fa897a
LDFLAGS_CMDLINE 	= @ldflags_cmdline@
fa897a
LDFLAGS_CONFIG 		= @ldflags_config@
fa897a
LDFLAGS_SYSROOT 	= @ldflags_sysroot@
fa897a
LDFLAGS_PATH 		= @ldflags_path@
fa897a
fa897a
PE_SUBSYSTEM 		= @pe_subsystem@
fa897a
PE_IMAGE_BASE 		= @pe_image_base@
fa897a
PE_CONFIG_DEFS  	= @pe_config_defs@
fa897a
fa897a
ELF_EH_FRAME 		= @elf_eh_frame@
fa897a
ELF_HASH_STYLE 		= @elf_hash_style@
fa897a
ELF_CONFIG_DEFS 	= @elf_config_defs@
fa897a
fa897a
PREFIX 			= @prefix@
cf4536
EXEC_PREFIX 		= @exec_prefix@
fa897a
BINDIR 			= @bindir@
fa897a
LIBDIR 			= @libdir@
fa897a
INCLUDEDIR 		= @includedir@
fa897a
MANDIR 			= @mandir@
fa897a
DOCDIR 			= @docdir@
fa897a
LIBEXECDIR 		= @libexecdir@
fa897a
fa897a
NATIVE_CC 		= @native_cc@
fa897a
NATIVE_OS 		= @native_os@
fa897a
NATIVE_OS_BITS 		= @native_os_bits@
fa897a
NATIVE_OS_UNDERSCORE	= @native_os_underscore@
fa897a
2e94f1
USER_CC                 = @user_cc@
2e94f1
USER_CPP                = @user_cpp@
2e94f1
USER_CXX                = @user_cxx@
fa897a
fa897a
fa897a
all:
fa897a
install:
fa897a
shared:
fa897a
static:
fa897a
fa897a
fa897a
fa897a
include $(PROJECT_DIR)/sysinfo/host/$(HOST).mk
09d3a4
include $(PROJECT_DIR)/sysinfo/compiler/$(COMPILER).mk
f47035
include $(PROJECT_DIR)/sysinfo/toolchain/$(TOOLCHAIN).mk
fa897a
fa897a
include $(PROJECT_DIR)/project/defs.mk
fa897a
include $(PROJECT_DIR)/project/tree.mk
fa897a
include $(PROJECT_DIR)/project/depends.mk
fa897a
include $(PROJECT_DIR)/project/headers.mk
fa897a
include $(PROJECT_DIR)/project/common.mk
fa897a
include $(PROJECT_DIR)/project/arch.mk
fa897a
include $(PROJECT_DIR)/project/extras.mk
fa897a
include $(PROJECT_DIR)/project/overrides.mk
fa897a
fa897a
fa897a
7e4a87
src/%.lo: 	$(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag dirs.tag
fa897a
		$(CC) -c -o $@ $< $(CFLAGS_SHARED)
fa897a
7e4a87
src/%.o: 	$(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag dirs.tag
fa897a
		$(CC) -c -o $@ $< $(CFLAGS_STATIC)
fa897a
7e4a87
lib/%$(OS_LIB_SUFFIX):
fa897a
		$(CC) -shared -o $@ $^ $(LDFLAGS_SHARED)
fa897a
7e4a87
lib/%$(OS_ARCHIVE_EXT):
fa897a
		rm -f $@
d81ca4
		$(AR) rcs $@ $^
fa897a
fa897a
fa897a
fa897a
all:		shared static
fa897a
fa897a
install:	install-libs install-headers
fa897a
fa897a
fa897a
install-libs:	install-shared install-static install-implib
fa897a
fa897a
install-headers:shared static
ae9f08
		mkdir -p $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
ae9f08
		cp $(API_HEADERS) $(DESTDIR)$(INCLUDEDIR)/$(PACKAGE)
fa897a
fa897a
install-shared:	shared install-implib
ae9f08
		mkdir -p $(DESTDIR)$(LIBDIR)
ae9f08
		cp $(SHARED_LIB) $(DESTDIR)$(LIBDIR)
fa897a
fa897a
install-static:	static
ae9f08
		mkdir -p $(DESTDIR)$(LIBDIR)
ae9f08
		cp $(STATIC_LIB) $(DESTDIR)$(LIBDIR)
fa897a
fa897a
fa897a
fa897a
shared:		shared-lib shared-implib
fa897a
fa897a
static:		static-lib
fa897a
fa897a
shared-lib:	shared-objs $(SHARED_LIB)
fa897a
fa897a
static-lib:	static-objs $(STATIC_LIB)
fa897a
fa897a
shared-implib:	shared-lib
fa897a
fa897a
fa897a
fa897a
shared-objs:	dirs $(SHARED_OBJS)
fa897a
fa897a
static-objs:	dirs $(STATIC_OBJS)
fa897a
fa897a
fa897a
fa897a
$(SHARED_LIB):	$(SHARED_OBJS)
fa897a
fa897a
$(STATIC_LIB):	$(STATIC_OBJS)
fa897a
fa897a
fa897a
dirs: 		dirs.tag tree.tag
fa897a
fa897a
dirs.tag:
7e4a87
		mkdir -p lib
fa897a
		touch dirs.tag
fa897a
fa897a
host.tag:	Makefile
fa897a
		$(PROJECT_DIR)/sysinfo/host/host.sh --compiler="$(CC)" --cflags="$(CFLAGS)"
fa897a
		touch host.tag
fa897a
fa897a
distclean:	clean
fa897a
		rm -f Makefile
fa897a
fa897a
clean:
fa897a
		rm -f tree.tag
fa897a
		rm -f dirs.tag
fa897a
		rm -f host.tag
fa897a
		rm -f $(SHARED_OBJS)
fa897a
		rm -f $(STATIC_OBJS)
fa897a
		rm -f $(SHARED_LIB)
fa897a
		rm -f $(STATIC_LIB)
fa897a
		rm -f $(SHARED_IMPLIB)
fa897a
fa897a
6ff2c7
.display:	.display-project .display-env .display-tools .display-flags \
fa897a
		.display-pe .display-elf .display-dirs .display-build
fa897a
6ff2c7
.display-project:
6ff2c7
		@echo PROJECT_DIR:'            '$(PROJECT_DIR)
6ff2c7
		@echo BUILD_DIR:'              '$(CURDIR)
6ff2c7
		@echo
6ff2c7
fa897a
.display-env:
fa897a
		@echo BUILD:'                  '$(BUILD)
fa897a
		@echo HOST:'                   '$(HOST)
fa897a
		@echo TARGET:'                 '$(TARGET)
fa897a
		@echo ARCH:'                   '$(ARCH)
09d3a4
		@echo COMPILER:'               '$(COMPILER)
f47035
		@echo TOOLCHAIN:'              '$(TOOLCHAIN)
fa897a
		@echo SYSROOT:'                '$(SYSROOT)
845575
		@echo CROSS_COMPILE:'          '$(CROSS_COMPILE)
fa897a
		@echo SHELL:'                  '$(SHELL)
6bdfcd
		@echo
fa897a
fa897a
.display-tools:
fa897a
		@echo CC:'                     '$(CC)
fa897a
		@echo CPP:'                    '$(CPP)
fa897a
		@echo CXX:'                    '$(CXX)
fa897a
		@echo
fa897a
		@echo AS:'                     '$(AS)
fa897a
		@echo AR:'                     '$(AR)
fa897a
		@echo LD:'                     '$(LD)
fa897a
		@echo NM:'                     '$(NM)
fa897a
		@echo OBJDUMP:'                '$(OBJDUMP)
fa897a
		@echo RANLIB:'                 '$(RANLIB)
fa897a
		@echo SIZE:'                   '$(SIZE)
fa897a
		@echo STRIP:'                  '$(STRIP)
fa897a
		@echo STRINGS:'                '$(STRINGS)
fa897a
		@echo
fa897a
		@echo ADDR2LINE:'              '$(ADDR2LINE)
fa897a
		@echo COV:'                    '$(COV)
fa897a
		@echo CXXFILT'                 '$(CXXFILT)
fa897a
		@echo ELFEDIT:'                '$(ELFEDIT)
fa897a
		@echo OBJCOPY:'                '$(OBJCOPY)
fa897a
		@echo READELF:'                '$(READELF)
fa897a
		@echo
fa897a
fa897a
.display-flags:
fa897a
		@echo CFLAGS_DEBUG:'           '$(CFLAGS_DEBUG)
fa897a
		@echo CFLAGS_COMMON:'          '$(CFLAGS_COMMON)
fa897a
		@echo CFLAGS_CMDLINE:'         '$(CFLAGS_CMDLINE)
fa897a
		@echo CFLAGS_CONFIG:'          '$(CFLAGS_CONFIG)
fa897a
		@echo CFLAGS_SYSROOT:'         '$(CFLAGS_SYSROOT)
fa897a
		@echo CFLAGS_PATH:'            '$(CFLAGS_PATH)
fa897a
		@echo
fa897a
		@echo LDFLAGS_DEBUG:'           '$(LDFLAGS_DEBUG)
fa897a
		@echo LDFLAGS_COMMON:'          '$(LDFLAGS_COMMON)
fa897a
		@echo LDFLAGS_CMDLINE:'         '$(LDFLAGS_CMDLINE)
fa897a
		@echo LDFLAGS_CONFIG:'          '$(LDFLAGS_CONFIG)
fa897a
		@echo LDFLAGS_SYSROOT:'         '$(LDFLAGS_SYSROOT)
fa897a
		@echo LDFLAGS_PATH:'            '$(LDFLAGS_PATH)
fa897a
		@echo
fa897a
fa897a
.display-pe:
fa897a
		@echo PE_SUBSYSTEM:'           '$(PE_SUBSYSTEM)
fa897a
		@echo PE_IMAGE_BASE:'          '$(PE_IMAGE_BASE)
fa897a
		@echo PE_CONFIG_DEFS:'         '$(PE_CONFIG_DEFS)
fa897a
		@echo
fa897a
fa897a
.display-elf:
fa897a
		@echo ELF_EH_FRAME:'           '$(ELF_EH_FRAME)
fa897a
		@echo ELF_HASH_STYLE:'         '$(ELF_HASH_STYLE)
fa897a
		@echo ELF_CONFIG_DEFS:'        '$(ELF_CONFIG_DEFS)
fa897a
		@echo
fa897a
fa897a
.display-dirs:
fa897a
		@echo PREFIX:'                 '$(PREFIX)
cf4536
		@echo EXEC_PREFIX:'            '$(EXEC_PREFIX)
fa897a
		@echo BINDIR:'                 '$(BINDIR)
fa897a
		@echo LIBDIR:'                 '$(LIBDIR)
fa897a
		@echo INCLUDEDIR:'             '$(INCLUDEDIR)
fa897a
		@echo MANDIR:'                 '$(MANDIR)
fa897a
		@echo DOCDIR:'                 '$(DOCDIR)
fa897a
		@echo LIBEXECDIR:'             '$(LIBEXECDIR)
fa897a
		@echo
fa897a
fa897a
.display-build:
fa897a
		@echo NATIVE_CC:'              '$(NATIVE_CC)
fa897a
		@echo NATIVE_OS:'              '$(NATIVE_OS)
fa897a
		@echo NATIVE_OS_BITS:'         '$(NATIVE_OS_BITS)
12e9b9
		@echo NATIVE_OS_UNDERSCORE:'   '$(NATIVE_OS_UNDERSCORE)
fa897a
		@echo
2e94f1
		@echo USER_CC:'                '$(USER_CC)
2e94f1
		@echo USER_CPP:'               '$(USER_CPP)
2e94f1
		@echo USER_CXX:'               '$(USER_CXX)
2e94f1
		@echo
fa897a
fa897a
fa897a
.PHONY:		all install shared static .display \
fa897a
		shared-objs shared-lib shared-implib \
fa897a
		static-objs static-lib \
fa897a
		install-shared install-static install-implib \
fa897a
		install-headers \
fa897a
		clean distclean \
6ff2c7
		.display-project .display-env .display-tools .display-flags \
fa897a
		.display-pe .display-elf .display-dirs .display-build