From: Reid Spencer Date: Sun, 17 Oct 2004 00:24:24 +0000 (+0000) Subject: Initial Makefile.am for building with automake X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=da0a22b7ace53e256a01c4f2b9e6d46ecbdd91bb Initial Makefile.am for building with automake git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17073 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/runtime/GC/Makefile.am b/runtime/GC/Makefile.am new file mode 100644 index 00000000000..3e9f01f1d0e --- /dev/null +++ b/runtime/GC/Makefile.am @@ -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 + diff --git a/runtime/GC/SemiSpace/Makefile.am b/runtime/GC/SemiSpace/Makefile.am new file mode 100644 index 00000000000..7f5eea9c691 --- /dev/null +++ b/runtime/GC/SemiSpace/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/Makefile.am b/runtime/GCCLibraries/Makefile.am new file mode 100644 index 00000000000..43f26bf05a7 --- /dev/null +++ b/runtime/GCCLibraries/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/crtend/Makefile.am b/runtime/GCCLibraries/crtend/Makefile.am new file mode 100644 index 00000000000..71bb077d3dd --- /dev/null +++ b/runtime/GCCLibraries/crtend/Makefile.am @@ -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 $@ diff --git a/runtime/GCCLibraries/libc/Makefile.am b/runtime/GCCLibraries/libc/Makefile.am new file mode 100644 index 00000000000..e9037e02e47 --- /dev/null +++ b/runtime/GCCLibraries/libc/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libcurses/Makefile.am b/runtime/GCCLibraries/libcurses/Makefile.am new file mode 100644 index 00000000000..ff7cebe3240 --- /dev/null +++ b/runtime/GCCLibraries/libcurses/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libgcc/Makefile.am b/runtime/GCCLibraries/libgcc/Makefile.am new file mode 100644 index 00000000000..b94c3987816 --- /dev/null +++ b/runtime/GCCLibraries/libgcc/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libgdbm/Makefile.am b/runtime/GCCLibraries/libgdbm/Makefile.am new file mode 100644 index 00000000000..ac22fa95117 --- /dev/null +++ b/runtime/GCCLibraries/libgdbm/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libm/Makefile.am b/runtime/GCCLibraries/libm/Makefile.am new file mode 100644 index 00000000000..cb49265467a --- /dev/null +++ b/runtime/GCCLibraries/libm/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libmalloc/Makefile.am b/runtime/GCCLibraries/libmalloc/Makefile.am new file mode 100644 index 00000000000..fac62e2580b --- /dev/null +++ b/runtime/GCCLibraries/libmalloc/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libpthread/Makefile.am b/runtime/GCCLibraries/libpthread/Makefile.am new file mode 100644 index 00000000000..915a485165a --- /dev/null +++ b/runtime/GCCLibraries/libpthread/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libtermcap/Makefile.am b/runtime/GCCLibraries/libtermcap/Makefile.am new file mode 100644 index 00000000000..9bdb42d364f --- /dev/null +++ b/runtime/GCCLibraries/libtermcap/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libucb/Makefile.am b/runtime/GCCLibraries/libucb/Makefile.am new file mode 100644 index 00000000000..fd14d3c0cdd --- /dev/null +++ b/runtime/GCCLibraries/libucb/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libutempter/Makefile.am b/runtime/GCCLibraries/libutempter/Makefile.am new file mode 100644 index 00000000000..d8f2b44cc6d --- /dev/null +++ b/runtime/GCCLibraries/libutempter/Makefile.am @@ -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 diff --git a/runtime/GCCLibraries/libutil/Makefile.am b/runtime/GCCLibraries/libutil/Makefile.am new file mode 100644 index 00000000000..afe364070e4 --- /dev/null +++ b/runtime/GCCLibraries/libutil/Makefile.am @@ -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 diff --git a/runtime/libdummy/Makefile.am b/runtime/libdummy/Makefile.am new file mode 100644 index 00000000000..a8f8793a5db --- /dev/null +++ b/runtime/libdummy/Makefile.am @@ -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 diff --git a/runtime/libpng/Makefile.am b/runtime/libpng/Makefile.am new file mode 100644 index 00000000000..f988f1d67aa --- /dev/null +++ b/runtime/libpng/Makefile.am @@ -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 diff --git a/runtime/libprofile/Makefile.am b/runtime/libprofile/Makefile.am new file mode 100644 index 00000000000..d544c7183c2 --- /dev/null +++ b/runtime/libprofile/Makefile.am @@ -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 diff --git a/runtime/libtrace/Makefile.am b/runtime/libtrace/Makefile.am new file mode 100644 index 00000000000..99e8c40b192 --- /dev/null +++ b/runtime/libtrace/Makefile.am @@ -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 diff --git a/runtime/zlib/Makefile.am b/runtime/zlib/Makefile.am new file mode 100644 index 00000000000..b0601b42875 --- /dev/null +++ b/runtime/zlib/Makefile.am @@ -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