source: icGREP/icgrep-devel/cudd-2.5.1/mnemosyne/Makefile @ 6055

Last change on this file since 6055 was 4597, checked in by nmedfort, 4 years ago

Upload of the CUDD library.

File size: 1.0 KB
Line 
1# $Id$
2#
3#       Makefile for the Mnemosyne memory allocation tracker.
4#
5#       Marcus J. Ranum, 1990
6#
7#Options:
8# define MALLOC_IS_VOIDSTAR if your system's malloc is declared as a (void *)
9# otherwise, it is assumed to be a (char *). a "mall_t" is typedeffed in
10# mnemconf.h and mnemosyne.h to implement this.
11OPTNS   =       -DMALLOC_IS_VOIDSTAR
12#OPTNS  =
13
14CC      = cc
15RANLIB  = ranlib
16
17#compiler flags
18CFLAGS  =       -g $(OPTNS) $(XCFLAGS)
19
20#loader flags
21LDFLGS  =
22
23HDRS    =       mnemosyne.h mnemconf.h
24
25all: mnemalyse libmnem.a
26
27mnemalyse: mnemalyse.o
28        $(CC) $(LDFLGS) -o $@ mnemalyse.o
29
30libmnem.a: mnemosyne.o
31        ar rcv $@ mnemosyne.o
32        $(RANLIB) $@
33
34mtest: mtest.o libmnem.a
35        $(CC) $(LDFLGS) -o $@ mtest.o libmnem.a
36
37runmtest: all mtest
38        @echo "running memory waster"
39        mtest
40        @echo "press return for symbol list"; read ff
41        @cat mnem.syms
42        @echo "press return for waste analysis"; read ff
43        mnemalyse
44
45clean:
46        rm -f mtest core *.o mnem.dat mnem.syms
47
48distclean: clean
49        rm -f *.bak *~ libmnem.a mnemalyse
50
51
52mnemosyne.o: Makefile mnemosyne.c $(HDRS)
53mnemalyse.o: Makefile mnemalyse.c $(HDRS)
Note: See TracBrowser for help on using the repository browser.