Makefile.in files replaced by single Makefile.am

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2002-12-23 23:07:01 +00:00
commit 8e3f05b007
12 changed files with 94 additions and 251 deletions

View file

@ -1 +1,3 @@
Makefile
Makefile.in
.deps

View file

@ -1,8 +1,6 @@
Makefile
.deps
parser.c
parser.h
libcparse.a
cscanner.o
parser.o
y.tab.c

View file

@ -1,69 +0,0 @@
#######################################################################
# $Header$
#######################################################################
srcdir = @srcdir@
VPATH = @srcdir@
SHELL = /bin/sh
CC = @CC@
CFLAGS = @CFLAGS@
YACC = @YACC@
AR = @AR@
RANLIB = @RANLIB@
TARGET = libcparse.a
OBJS = parser.@OBJEXT@ cscanner.@OBJEXT@ templ.@OBJEXT@ util.@OBJEXT@
SRCS = cscanner.c templ.c util.c
PARSER = $(srcdir)/parser.y
INCLUDES = -I$(srcdir)/../Include \
-I$(srcdir)/. \
-I$(srcdir)/../Swig \
-I$(srcdir)/../Preprocessor \
-I$(srcdir)/../DOH \
-I../Include \
-I.
.c.@OBJEXT@:
$(CC) $(CFLAGS) $(INCLUDES) -c -o $*.@OBJEXT@ $<
cparse: $(TARGET)
$(TARGET): $(OBJS)
$(AR) cr $(TARGET) $(OBJS)
$(RANLIB) $(TARGET)
parser.@OBJEXT@: parser.c
$(CC) $(INCLUDES) $(CFLAGS) $< -c -o parser.@OBJEXT@
parser.c parser.h: $(PARSER)
$(YACC) @YFLAGS@ $(PARSER)
@cp y.tab.h parser.h
@cp y.tab.c parser.c
scanner.@OBJEXT@: parser.h
parser::
@cp y.tab.c.bison parser.c
@cp y.tab.h.bison parser.h
@cp y.tab.h.bison y.tab.h
$(CC) $(CFLAGS) parser.c -c -o parser.@OBJEXT@
clean::
rm -f *.@OBJEXT@ $(TARGET) y.tab.c y.tab.h
nuke::
rm -f Makefile *~

View file

@ -1,5 +1 @@
Makefile
config.*
*.tar.gz
configure
autom4te.cache
.deps

View file

@ -1,56 +0,0 @@
#######################################################################
# $Header$
# DOH
#######################################################################
srcdir = @srcdir@
VPATH = @srcdir@
#.KEEP_STATE:
# Set your C++ compiler here. g++ works on most machines,
# but you might have to change it depending on your installation.
#
CC = @CC@
prefix = @prefix@
# Comment out the following line if you're on an SGI or don't have ranlib!
RANLIB = @RANLIB@
AR = @AR@
DOHOPT =
########################################################################
# Normally, you shouldn't have to change anything below this point #
########################################################################
LIBOBJS = void.@OBJEXT@ fio.@OBJEXT@ memory.@OBJEXT@ base.@OBJEXT@ file.@OBJEXT@ list.@OBJEXT@ hash.@OBJEXT@ string.@OBJEXT@
LIBSRCS = void.c fio.c memory.c base.c file.c list.c hash.c string.c
LIBHEADERS = $(srcdir)/doh.h
LIB = libdoh.a
INCLUDES = -I$(srcdir)
CFLAGS = @CFLAGS@
SHELL = /bin/sh
#
# Rules for creation of a .@OBJEXT@ file from .c
.SUFFIXES: .c
.c.@OBJEXT@:
$(CC) $(DOHOPT) $(INCLUDES) $(CFLAGS) -c -o $*.@OBJEXT@ $<
all: $(LIB)
$(LIB): $(LIBOBJS)
@echo "Building library"
$(AR) cr $(LIB) $(LIBOBJS)
$(RANLIB) $(LIB)
clean::
rm -f *.@OBJEXT@ $(LIB) ../$(LIB)
nuke::
rm -f Makefile *~

91
SWIG/Source/Makefile.am Normal file
View file

@ -0,0 +1,91 @@
## Process this file with automake to produce Makefile.in
# subdir-objects generates object files using the directory structure of the source files.
AUTOMAKE_OPTIONS = foreign nostdinc subdir-objects 1.7.2
SOURCE_DIR=$(top_srcdir)/Source
SWIG_CXX_DEFS = -DSWIG_LIB=\"$(swig_lib)\" \
-DLIBDIR=\"$(libdir)\" \
-DRELEASE_SUFFIX=\"$(release_suffix)\" @SWILL@
AM_CFLAGS = -I$(SOURCE_DIR)/Include \
-I$(SOURCE_DIR)/DOH \
-I$(SOURCE_DIR)/CParse \
-I$(SOURCE_DIR)/Preprocessor \
-I$(SOURCE_DIR)/Swig \
-I$(SOURCE_DIR)/Modules
AM_CXXFLAGS = -I$(SOURCE_DIR)/Include \
-I$(SOURCE_DIR)/DOH \
-I$(SOURCE_DIR)/Preprocessor \
-I$(SOURCE_DIR)/Swig \
-I$(SOURCE_DIR)/Modules \
$(SWIG_CXX_DEFS)
AM_YFLAGS = -d
swig_SOURCES = CParse/parser.y \
CParse/cscanner.c \
CParse/templ.c \
CParse/util.c \
DOH/base.c \
DOH/file.c \
DOH/fio.c \
DOH/hash.c \
DOH/list.c \
DOH/memory.c \
DOH/string.c \
DOH/void.c \
Modules/allocate.cxx \
Modules/emit.cxx \
Modules/browser.cxx \
Modules/contract.cxx \
Modules/guile.cxx \
Modules/java.cxx \
Modules/lang.cxx \
Modules/main.cxx \
Modules/module.cxx \
Modules/mzscheme.cxx \
Modules/ocaml.cxx \
Modules/overload.cxx \
Modules/perl5.cxx \
Modules/php4.cxx \
Modules/pike.cxx \
Modules/python.cxx \
Modules/ruby.cxx \
Modules/s-exp.cxx \
Modules/swigmain.cxx \
Modules/tcl8.cxx \
Modules/typepass.cxx \
Modules/xml.cxx \
Preprocessor/cpp.c \
Preprocessor/expr.c \
Swig/cwrap.c \
Swig/error.c \
Swig/fragment.c \
Swig/getopt.c \
Swig/include.c \
Swig/misc.c \
Swig/naming.c \
Swig/parms.c \
Swig/scanner.c \
Swig/stype.c \
Swig/symbol.c \
Swig/tree.c \
Swig/typemap.c \
Swig/typesys.c \
Swig/warn.c \
Swig/wrapfunc.c
bin_PROGRAMS = swig
swig_LDADD = @SWIGLIBS@
# The executable is copied to the root directory for installation and running the test-suite.
# This occurs on each invocation of make and is a step towards providing support for multiple
# build directories.
all-local:
cp swig@EXEEXT@ ../swig@release_suffix@@EXEEXT@
clean-local:
rm -f ../swig@release_suffix@@EXEEXT@

View file

@ -1,2 +1 @@
Makefile
.deps

View file

@ -1,52 +0,0 @@
#######################################################################
# $Header$
#######################################################################
srcdir = @srcdir@
VPATH = @srcdir@
# prefix is needed for swig_lib
prefix = @prefix@
exec_prefix = @exec_prefix@
release_suffix = @release_suffix@
swig_lib = @swig_lib@
libdir = @libdir@
SHELL = /bin/sh
CXX = @CXX@
CFLAGS = @CFLAGS@ @SWILL@
YACC = @YACC@
AR = @AR@
RANLIB = @RANLIB@
# These C macros are passed on the compilation command line as autoconf won't expand them for
# generation into a header file. This is because they can be set when running make.
DEFS = -DSWIG_LIB=\"$(swig_lib)\" -DLIBDIR=\"$(libdir)\" -DRELEASE_SUFFIX=\"$(release_suffix)\"
TARGET = libmodules.a
OBJS = main.@OBJEXT@ module.@OBJEXT@ emit.@OBJEXT@ overload.@OBJEXT@ lang.@OBJEXT@ typepass.@OBJEXT@ allocate.@OBJEXT@ browser.@OBJEXT@ contract.@OBJEXT@ swigmain.@OBJEXT@ tcl8.@OBJEXT@ python.@OBJEXT@ perl5.@OBJEXT@ guile.@OBJEXT@ ruby.@OBJEXT@ mzscheme.@OBJEXT@ java.@OBJEXT@ php4.@OBJEXT@ ocaml.@OBJEXT@ xml.@OBJEXT@ pike.@OBJEXT@ s-exp.@OBJEXT@
SRCS = main.cxx module.cxx emit.cxx overload.cxx lang.cxx typepass.cxx allocate.cxx browser.cxx contract.cxx swigmain.cxx tcl8.cxx python.cxx perl5.cxx guile.cxx ruby.cxx mzscheme.cxx java.cxx php4.cxx ocaml.cxx xml.cxx pike.cxx s-exp.cxx
INCLUDES = -I$(srcdir)/../Include \
-I$(srcdir)/../DOH \
-I$(srcdir)/../Preprocessor \
-I$(srcdir)/../Swig \
-I../Include
# Rules for creation of a .@OBJEXT@ file from .cxx
.SUFFIXES: .cxx
.cxx.@OBJEXT@:
$(CXX) $(DEFS) $(INCLUDES) $(CFLAGS) -c -o $*.@OBJEXT@ $<
swig: $(TARGET)
$(TARGET): $(OBJS)
$(AR) cr $(TARGET) $(OBJS)
$(RANLIB) $(TARGET)
clean::
rm -f *.@OBJEXT@ *~ $(TARGET)
nuke::
rm -f Makefile *~

View file

@ -1,3 +1,2 @@
Makefile
.deps

View file

@ -1,31 +0,0 @@
# ---------------------------------------------------------------
# $Header$
#----------------------------------------------------------------
srcdir = @srcdir@
VPATH = @srcdir@
SRCS = expr.c cpp.c
OBJS = expr.@OBJEXT@ cpp.@OBJEXT@
prefix = @prefix@
exec_prefix = @exec_prefix@
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@
INCLUDES = -I$(srcdir)/. -I$(srcdir)/../Swig -I$(srcdir)/../DOH -I$(srcdir)/../Include
TARGET = libcpp.a
.c.@OBJEXT@:
$(CC) $(CFLAGS) $(INCLUDES) -c -o $*.@OBJEXT@ $<
all: $(TARGET)
$(TARGET): $(OBJS)
$(AR) cr $(TARGET) $(OBJS)
$(RANLIB) $(TARGET)
clean:
rm -f *.@OBJEXT@ *~ core *.so *.a *_wrap.*

View file

@ -1,4 +1,3 @@
Makefile
*.flc
supertest
*_wrap.*

View file

@ -1,33 +0,0 @@
# ---------------------------------------------------------------
# $Header$
#----------------------------------------------------------------
srcdir = @srcdir@
VPATH = @srcdir@
SRCS = wrapfunc.c naming.c tree.c stype.c typesys.c scanner.c include.c getopt.c misc.c \
parms.c cwrap.c typemap.c warn.c symbol.c error.c fragment.c
OBJS = wrapfunc.@OBJEXT@ naming.@OBJEXT@ tree.@OBJEXT@ stype.@OBJEXT@ typesys.@OBJEXT@ scanner.@OBJEXT@ include.@OBJEXT@ getopt.@OBJEXT@ misc.@OBJEXT@ \
parms.@OBJEXT@ cwrap.@OBJEXT@ typemap.@OBJEXT@ warn.@OBJEXT@ symbol.@OBJEXT@ error.@OBJEXT@ fragment.@OBJEXT@
prefix = @prefix@
exec_prefix = @exec_prefix@
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@
INCLUDES = -I$(srcdir)/. -I$(srcdir)/../DOH -I$(srcdir)/../Include
TARGET = libswig.a
.c.@OBJEXT@:
$(CC) $(CFLAGS) $(INCLUDES) -c -o $*.@OBJEXT@ $<
all: $(TARGET)
$(TARGET): $(OBJS)
$(AR) cr $(TARGET) $(OBJS)
$(RANLIB) $(TARGET)
clean:
rm -f *.@OBJEXT@ *~ core *.so *.a *_wrap.*