Blame Makefile.in

fa897a
PACKAGE 		= @package@
fa897a
PROJECT_DIR 		= @project_dir@
fa897a
fa897a
BUILD 			= @build@
fa897a
HOST 			= @host@
fa897a
TARGET 			= @target@
fa897a
ARCH 			= @arch@
fa897a
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@
fa897a
BINDIR 			= @bindir@
fa897a
LIBDIR 			= @libdir@
fa897a
INCLUDEDIR 		= @includedir@
fa897a
SYSLIBDIR 		= @syslibdir@
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
fa897a
fa897a
fa897a
all:
fa897a
install:
fa897a
shared:
fa897a
static:
fa897a
fa897a
fa897a
fa897a
include $(PROJECT_DIR)/sysinfo/toolchain/$(TOOLCHAIN).mk
fa897a
include $(PROJECT_DIR)/sysinfo/host/$(HOST).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
c56107
src/%.lo: 	$(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
fa897a
		$(CC) -c -o $@ $< $(CFLAGS_SHARED)
fa897a
c56107
src/%.o: 	$(PROJECT_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
fa897a
		$(CC) -c -o $@ $< $(CFLAGS_STATIC)
fa897a
fa897a
$(LIBDIR)/%$(OS_LIB_SUFFIX):
fa897a
		$(CC) -shared -o $@ $^ $(LDFLAGS_SHARED)
fa897a
fa897a
$(LIBDIR)/%$(OS_ARCHIVE_EXT):
fa897a
		rm -f $@
fa897a
		$(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
fa897a
		mkdir -p $(DESTDIR)/./$(PREFIX)/./$(INCLUDEDIR)/$(PACKAGE)
fa897a
		cp $(API_HEADERS) $(DESTDIR)/./$(PREFIX)/./$(INCLUDEDIR)/$(PACKAGE)
fa897a
fa897a
install-shared:	shared install-implib
fa897a
		mkdir -p $(DESTDIR)/./$(PREFIX)/./$(LIBDIR)
fa897a
		cp $(SHARED_LIB) $(DESTDIR)/./$(PREFIX)/./$(LIBDIR)
fa897a
fa897a
install-static:	static
fa897a
		mkdir -p $(DESTDIR)/./$(PREFIX)/./$(LIBDIR)
fa897a
		cp $(STATIC_LIB) $(DESTDIR)/./$(PREFIX)/./$(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:
fa897a
		mkdir -p $(LIBDIR)
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
fa897a
.display:	.display-env .display-tools .display-flags \
fa897a
		.display-pe .display-elf .display-dirs .display-build
fa897a
fa897a
.display-env:
fa897a
		@echo BUILD:'                  '$(BUILD)
fa897a
		@echo HOST:'                   '$(HOST)
fa897a
		@echo TARGET:'                 '$(TARGET)
fa897a
		@echo ARCH:'                   '$(ARCH)
fa897a
		@echo TOOLCHAIN:'              '$(TOOLCHAIN)
fa897a
		@echo SYSROOT:'                '$(SYSROOT)
fa897a
		@echo XCOMPILE:'               '$(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)
fa897a
		@echo BINDIR:'                 '$(BINDIR)
fa897a
		@echo LIBDIR:'                 '$(LIBDIR)
fa897a
		@echo INCLUDEDIR:'             '$(INCLUDEDIR)
fa897a
		@echo SYSLIBDIR:'              '$(SYSLIBDIR)
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)
fa897a
		@echo NATIVE_OS_USCORE:'       '$(NATIVE_OS_UNDERSCORE)
fa897a
		@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 \
fa897a
		.display-env .display-tools .display-flags \
fa897a
		.display-pe .display-elf .display-dirs .display-build