git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@2 626c5289-ae23-0410-ae9c-e8d60b6d4f22
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
#######################################################################
|
|
# $Header$
|
|
# Simplified Wrapper and Interface Generator (SWIG)
|
|
#
|
|
# Makefile for version 1.0 Final
|
|
# Dave Beazley
|
|
# August 1, 1996
|
|
#
|
|
#######################################################################
|
|
|
|
#.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 = /usr/local
|
|
|
|
# Comment out the following line if you're on an SGI or don't have ranlib!
|
|
RANLIB = ranlib
|
|
AR = ar
|
|
|
|
########################################################################
|
|
# Normally, you shouldn't have to change anything below this point #
|
|
########################################################################
|
|
|
|
LIBOBJS = base.o file.o list.o hash.o string.o
|
|
|
|
LIBSRCS = base.c file.c list.c hash.c string.c
|
|
|
|
LIBHEADERS = ../Include/doh.h
|
|
LIB = ../libdoh.a
|
|
INCLUDE = -I../Include
|
|
CFLAGS =
|
|
SHELL = /bin/sh
|
|
|
|
#
|
|
#
|
|
#
|
|
# Rules for creation of a .o file from .cxx
|
|
.SUFFIXES: .c
|
|
.c.o:
|
|
$(CC) $(INCLUDE) $(CFLAGS) -c -o $*.o $<
|
|
|
|
all: $(LIB)
|
|
|
|
$(LIB): $(LIBOBJS)
|
|
@echo "Building library"
|
|
$(AR) cr $(LIB) $(LIBOBJS)
|
|
$(RANLIB) $(LIB)
|
|
|
|
clean::
|
|
rm -f *.o ../libdoh.a
|
|
nuke::
|
|
rm -f Makefile *~ #* core a.out
|
|
|