Initial Makefile.am for building with automake

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2004-10-17 00:24:24 +00:00
parent aa717415bf
commit da0a22b7ac
20 changed files with 346 additions and 0 deletions

15
runtime/GC/Makefile.am Normal file
View File

@ -0,0 +1,15 @@
#===-- runtime/GC/Makefile.am ------------------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
SUBDIRS = SemiSpace
EXTRA_DIST = gc_exported_symbols.lst GCInterface.h
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,17 @@
#===-- runtime/GC/SemiSpace/Makefile.am --------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libGCSemiSpace.a
libGCSemiSpace_a_SOURCES = semispace.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
EXPORTED_SYMBOL_FILE = $(srcdir)/../gc_exported_symbols.lst
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/Makefile.am --------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
SUBDIRS = crtend libc libcurses libg libgcc libgdbm libm libmalloc libpthread \
libtermcap libucb libutempter libutil
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,62 @@
#===-- runtime/GCCLibraries/crtend/Makefile.am -------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
##===- runtime/GCCLibraries/crtend/Makefile ----------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
# This file was developed by the LLVM research group and is distributed under
# the University of Illinois Open Source License. See LICENSE.TXT for details.
#
##===----------------------------------------------------------------------===##
#
# This directory contains the C and C++ runtime libraries for the LLVM GCC
# front-ends. See the README.txt file for more details.
#
# Since this archive has strange requirements, we use almost all custom rules
# for building it.
#
##===----------------------------------------------------------------------===##
include $(top_srcdir)/Makefile_config
AggregateLib := $(BCDIR)/libcrtend.a
ComponentLibs := comp_main.bc comp_genericeh.bc comp_sjljeh.bc
## We build libcrtend.a from the four components described in the README.
$(AggregateLib) : $(BCDIR) $(ComponentLibs)
@echo Building final libcrtend.a file from bytecode components
$(AR) cr $(BCDIR)/libcrtend.a $(ComponentLibs)
all-am: $(AggregateLib)
clean-am: clean-crtend
$(RM) -f $(AggregateLib) *.bc
install-am: install-crtend
$(INSTALL_DATA) '$(AggregateLib)' $(DESTDIR)$(libdir)
MainObj := crtend.bc listend.bc
GenericEHObj := Exception.bc
SJLJEHObj := SJLJ-Exception.bc
# __main and ctor/dtor support component
comp_main.bc: $(MainObj)
@echo Linking $(notdir $@) component...
$(LLVMGCCLD) -link-as-library -internalize-public-api-file=$(srcdir)/comp_main.lst $(MainObj) -o $@
# Generic exception handling support runtime.
comp_genericeh.bc: $(GenericEHObj)
@echo Linking $(notdir $@) component...
$(LLVMGCCLD) -link-as-library -internalize-public-api-file=$(srcdir)/comp_genericeh.lst $(GenericEHObj) -o $@
# setjmp/longjmp exception handling support runtime.
comp_sjljeh.bc: $(SJLJEHObj)
@echo Linking $(notdir $@) component...
$(LLVMGCCLD) -link-as-library -internalize-public-api-file=$(srcdir)/comp_sjljeh.lst $(SJLJEHObj) -o $@

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libc/Makefile.am ---------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libc.a
libc_a_SOURCES = atox.c io.c memory.c qsort.c string.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libcurses/Makefile.am ----------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libcurses.a
libcurses_a_SOURCES = dummy.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libgcc/Makefile.am -------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libgcc.a
libgcc_a_SOURCES = eprintf.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libgdbm/Makefile.am ------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libgdbm.a
libgdbm_a_SOURCES = temp.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libm/Makefile.am ---------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libm.a
libm_a_SOURCES = temp.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libmalloc/Makefile.am ----------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libmalloc.a
libmalloc_a_SOURCES = dummy.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libpthread/Makefile.am ---------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libpthread.a
libpthread_a_SOURCES = pthread.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libtermcap/Makefile.am ---------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libtermcap.a
libtermcap_a_SOURCES = dummy.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libucb/Makefile.am -------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libucb.a
libucb_a_SOURCES = dummy.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libutempter/Makefile.am --------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libutempter.a
libutempter_a_SOURCES = dummy.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/GCCLibraries/libutil/Makefile.am ------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libutil.a
libutil_a_SOURCES = dummy.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/libdummy/Makefile.am ------------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libdummy.a
libdummy_a_SOURCES = dummylib.c
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,20 @@
#===-- runtime/libpng/Makefile.am --------------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libpng.a
libpng_a_SOURCES = example.c png.c pngerror.c pnggccrd.c pngget.c pngmem.c \
pngpread.c pngread.c pngrio.c pngrtran.c pngrutil.c \
pngset.c pngtest.c pngtrans.c pngvcrd.c pngwio.c pngwrite.c \
pngwtran.c pngwutil.c
CPPFLAGS = -I../zlib
BYTECODE_LIBRARY = libpng.a
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,16 @@
#===-- runtime/libprofile/Makefile.am ----------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libprofile.a
libprofile_a_SOURCES = BasicBlockTracing.c BlockProfiling.c CommonProfiling.c \
EdgeProfiling.c FunctionProfiling.c Profiling.h
EXPORTED_SYMBOL_LIST = exported_symbols.lst
include $(top_srcdir)/Makefile_config

View File

@ -0,0 +1,14 @@
#===-- runtime/libtrace/Makefile.am ------------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libtrace.a
libtrace_a_SOURCES = tracelib.c tracelib.h
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config

20
runtime/zlib/Makefile.am Normal file
View File

@ -0,0 +1,20 @@
#===-- runtime/zlib/Makefile.am ----------------------------*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by Reid Spencer and is distributed under the
# University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
lib_LIBRARIES = libz.a
libz_a_SOURCES = adler32.c compress.c crc32.c crc32.h deflate.c deflate.h \
gzio.c infback.c inffast.c inffast.h inffixed.h \
inflate.c inflate.h inftrees.c inftrees.h trees.c \
trees.h uncompr.c zconf.h zlib.h zutil.c zutil.h
CPPFLAGS = -DNO_DUMMY_DECL=1
BYTECODE_LIBRARY = $(lib_LIBRARIES)
include $(top_srcdir)/Makefile_config