aboutsummaryrefslogtreecommitdiff
path: root/Source/DOH/Doh/Makefile
blob: 02c18a9941ca4fc90a7ed474ce1fce70267fc780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#######################################################################
# $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 -g
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 = memory.o base.o file.o list.o hash.o string.o

LIBSRCS = memory.c 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