Initial Makefile.am for building with automake
authorReid Spencer <rspencer@reidspencer.com>
Sun, 17 Oct 2004 00:24:24 +0000 (00:24 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 17 Oct 2004 00:24:24 +0000 (00:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17073 91177308-0d34-0410-b5e6-96231b3b80d8

20 files changed:
runtime/GC/Makefile.am [new file with mode: 0644]
runtime/GC/SemiSpace/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/crtend/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libc/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libcurses/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libgcc/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libgdbm/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libm/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libmalloc/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libpthread/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libtermcap/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libucb/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libutempter/Makefile.am [new file with mode: 0644]
runtime/GCCLibraries/libutil/Makefile.am [new file with mode: 0644]
runtime/libdummy/Makefile.am [new file with mode: 0644]
runtime/libpng/Makefile.am [new file with mode: 0644]
runtime/libprofile/Makefile.am [new file with mode: 0644]
runtime/libtrace/Makefile.am [new file with mode: 0644]
runtime/zlib/Makefile.am [new file with mode: 0644]

diff --git a/runtime/GC/Makefile.am b/runtime/GC/Makefile.am
new file mode 100644 (file)
index 0000000..3e9f01f
--- /dev/null
@@ -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 (file)
index 0000000..7f5eea9
--- /dev/null
@@ -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 (file)
index 0000000..43f26bf
--- /dev/null
@@ -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 (file)
index 0000000..71bb077
--- /dev/null
@@ -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 (file)
index 0000000..e9037e0
--- /dev/null
@@ -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 (file)
index 0000000..ff7cebe
--- /dev/null
@@ -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 (file)
index 0000000..b94c398
--- /dev/null
@@ -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 (file)
index 0000000..ac22fa9
--- /dev/null
@@ -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 (file)
index 0000000..cb49265
--- /dev/null
@@ -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 (file)
index 0000000..fac62e2
--- /dev/null
@@ -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 (file)
index 0000000..915a485
--- /dev/null
@@ -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 (file)
index 0000000..9bdb42d
--- /dev/null
@@ -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 (file)
index 0000000..fd14d3c
--- /dev/null
@@ -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 (file)
index 0000000..d8f2b44
--- /dev/null
@@ -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 (file)
index 0000000..afe3640
--- /dev/null
@@ -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 (file)
index 0000000..a8f8793
--- /dev/null
@@ -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 (file)
index 0000000..f988f1d
--- /dev/null
@@ -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 (file)
index 0000000..d544c71
--- /dev/null
@@ -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 (file)
index 0000000..99e8c40
--- /dev/null
@@ -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 (file)
index 0000000..b0601b4
--- /dev/null
@@ -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