summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-10-17 00:24:24 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-10-17 00:24:24 +0000
commitda0a22b7ace53e256a01c4f2b9e6d46ecbdd91bb (patch)
treebd3ede4349dda14ae8d84361b3c1f8dcf3c2511e
parentaa717415bf22e0de40961a09d108999845976d34 (diff)
downloadllvm-da0a22b7ace53e256a01c4f2b9e6d46ecbdd91bb.tar.gz
llvm-da0a22b7ace53e256a01c4f2b9e6d46ecbdd91bb.tar.bz2
llvm-da0a22b7ace53e256a01c4f2b9e6d46ecbdd91bb.tar.xz
Initial Makefile.am for building with automake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17073 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--runtime/GC/Makefile.am15
-rw-r--r--runtime/GC/SemiSpace/Makefile.am17
-rw-r--r--runtime/GCCLibraries/Makefile.am14
-rw-r--r--runtime/GCCLibraries/crtend/Makefile.am62
-rw-r--r--runtime/GCCLibraries/libc/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libcurses/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libgcc/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libgdbm/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libm/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libmalloc/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libpthread/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libtermcap/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libucb/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libutempter/Makefile.am14
-rw-r--r--runtime/GCCLibraries/libutil/Makefile.am14
-rw-r--r--runtime/libdummy/Makefile.am14
-rw-r--r--runtime/libpng/Makefile.am20
-rw-r--r--runtime/libprofile/Makefile.am16
-rw-r--r--runtime/libtrace/Makefile.am14
-rw-r--r--runtime/zlib/Makefile.am20
20 files changed, 346 insertions, 0 deletions
diff --git a/runtime/GC/Makefile.am b/runtime/GC/Makefile.am
new file mode 100644
index 0000000000..3e9f01f1d0
--- /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 0000000000..7f5eea9c69
--- /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 0000000000..43f26bf05a
--- /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 0000000000..71bb077d3d
--- /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 0000000000..e9037e02e4
--- /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 0000000000..ff7cebe324
--- /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 0000000000..b94c398781
--- /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 0000000000..ac22fa9511
--- /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 0000000000..cb49265467
--- /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 0000000000..fac62e2580
--- /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 0000000000..915a485165
--- /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 0000000000..9bdb42d364
--- /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 0000000000..fd14d3c0cd
--- /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 0000000000..d8f2b44cc6
--- /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 0000000000..afe364070e
--- /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 0000000000..a8f8793a5d
--- /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 0000000000..f988f1d67a
--- /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 0000000000..d544c7183c
--- /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 0000000000..99e8c40b19
--- /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 0000000000..b0601b4287
--- /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