source: icGREP/icgrep-devel/cudd-2.5.1/mtr/Makefile.sis @ 5815

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

Upload of the CUDD library.

File size: 1.8 KB
Line 
1# $Id$
2#
3#    Cudd - DD package
4#---------------------------
5.SUFFIXES: .o .c .u
6
7RANLIB  = ranlib
8
9CAD     = /projects/octtools/octtools/$(MACHINE)
10SIS     = ..
11LINTCREATEFLAG = -C
12
13# files for the package
14P       = mtr
15PSRC    = mtrBasic.c mtrGroup.c
16PHDR    = mtr.h
17POBJ    = $(PSRC:.c=.o)
18
19# files for the test program
20TARGET  = test$(P)
21SRC     = test$(P).c
22OBJ     = $(SRC:.c=.o)
23HDR     =
24
25LIBS    = ../util/libutil.a
26LINTLIBS= ../util/llib-lutil.ln
27INCLUDE = -I$(CAD)/include -I$(SIS)/include
28
29CFLAGS  = -g $(INCLUDE)
30LDFLAGS = -g
31LINTFLAGS = $(INCLUDE) ${LINTEXTRAS}
32
33#------------------------------------------------------
34
35$(TARGET): $(PHDR) $(OBJ) $(POBJ) $(LIBS)
36        $(CC) $(LDFLAGS) -o $(TARGET) $(OBJ) $(POBJ) $(LIBS)
37
38lint: $(PSRC) $(PHDR) $(SRC) $(HDR)
39        lint $(LINTFLAGS) $(SRC) $(PSRC) $(LINTLIBS)
40
41install: lib$(P).a llib-l$(P).ln
42
43lib$(P).a: $(POBJ)
44        ar cr $@ $?
45        $(RANLIB) $@
46
47unpack: lib$(P).a
48        @for i in $(POBJ); do                           \
49            ln -s $(SIS)/$(P)/$$i $(SIS)/unpack;        \
50        done
51
52llib-l$(P).ln: $(PSRC) $(PHDR)
53        lint $(LINTFLAGS) ${LINTCREATEFLAG}$(P) -n $(PSRC)
54
55clean:
56        rm -f $(TARGET) *.a *.ln *.o \
57            [Tt]ags [Mm]ake.out lint malloc.out gmon.out __.SYMDEF
58
59tags: _force
60        @for i in $(PSRC) $(PHDR); do                   \
61            cwd=`pwd`; ctags -a $$cwd/$$i;             
62        done;
63
64strip_depend:
65        sed '/^#--DO NOT CHANGE ANYTHING AFTER THIS LINE/,$$d' Makefile >mktemp
66        mv mktemp Makefile
67
68depend:
69        sed '/^#--DO NOT CHANGE ANYTHING AFTER THIS LINE/,$$d' Makefile >mktemp
70        echo '#--DO NOT CHANGE ANYTHING AFTER THIS LINE' >>mktemp
71        $(CAD)/bin/cc-M $(CFLAGS) $(PSRC) | \
72            sed 's|$(CAD)|$$(CAD)|g' | \
73            grep -v '/usr/include' >>mktemp
74        mv mktemp Makefile
75
76#-------------------------- IBM 3090 support -----------------
77IBMHOST = opua
78IBMDIST = /users2/sis
79ibmdist: $(PSRC) $(PHDR)
80        rdist -Richw $(PSRC) $(PHDR) $(IBMHOST):$(IBMDIST)
81#-------------------------------------------------------------
82_force:
83
Note: See TracBrowser for help on using the repository browser.