first revision of a configure generated makefile for use with all the modules.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4560 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a9ff1022d7
commit
ba73b7bc8c
|
@ -0,0 +1,57 @@
|
|||
@SET_MAKE@
|
||||
|
||||
switch_builddir=@switch_builddir@
|
||||
switch_srcdir=@switch_srcdir@
|
||||
BASE=$(switch_srcdir)
|
||||
|
||||
CC=@CC@
|
||||
RM=@RM@
|
||||
AWK=@AWK@
|
||||
SHELL=@SHELL@
|
||||
INSTALL=@INSTALL@
|
||||
LIBTOOL=$(switch_builddir)/libtool
|
||||
LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
||||
|
||||
CFLAGS=@SWITCH_AM_CFLAGS@ @CFLAGS@
|
||||
CPPFLAGS=$(CFLAGS) @CPPFLAGS@
|
||||
LDFLAGS=@SWITCH_AM_LDFLAGS@ @LDFLAGS@
|
||||
LIBS=$(switch_builddir)/libfreeswitch.la
|
||||
DEFS=@DEFS@
|
||||
PREFIX = @prefix@
|
||||
|
||||
DYLD_LIBRARY_PATH=$(PREFIX)/lib:$DYLD_LIBRARY_PATH
|
||||
LD_LIBRARY_PATH=$(PREFIX)/lib:$LD_LIBRARY_PATH
|
||||
OSARCH=$(shell uname -s)
|
||||
DYNAMIC_LIB_EXTEN = @DYNAMIC_LIB_EXTEN@
|
||||
SOLINK = @SOLINK@
|
||||
|
||||
COMPILE = $(CC) $(MOD_CFLAGS) $(MOD_CPPFLAGS) $(MOD_INCLUDES)
|
||||
LT_COMPILE = @lt_compile@
|
||||
|
||||
LINK = @link@
|
||||
|
||||
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||
|
||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(OBJS)
|
||||
|
||||
clean:
|
||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||
|
||||
install:
|
||||
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||
|
||||
|
||||
#
|
||||
# Implicit rules for creating outputs from input files
|
||||
#
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .lo .o
|
||||
|
||||
.c.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.c.lo:
|
||||
$(LT_COMPILE)
|
||||
|
Loading…
Reference in New Issue