source: git/MP/mpviewer/Makefile.in @ f78374

fieker-DuValspielwiese
Last change on this file since f78374 was a708e0, checked in by Olaf Bachmann <obachman@…>, 27 years ago
This commit was generated by cvs2svn to compensate for changes in r441, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@442 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.7 KB
Line 
1## file:      Makefile.in
2## directory: mpviewer
3## makefile creates the mpview -- a viewer for .mp files
4##
5
6srcdir          = @srcdir@
7top_srcdir      = @top_srcdir@
8prefix          = @prefix@
9exec_prefix     = @exec_prefix@
10libdir          = @libdir@
11bindir          = @bindir@
12includedir      = $(prefix)/include
13
14CC              = @CC@
15SHELL           = /bin/sh
16CFLAGS          = @CFLAGS@
17CPPFLAGS        = -I. @CPPFLAGS@
18
19INCLUDES        = -I$(includedir)
20LIBS            = @LIBS@ -lMP -lgmp
21LIBDIR          = $(libdir)
22
23CLEAN           = @CLEAN@
24INSTALL         = ../install-sh -c
25INSTALL_PROGRAM = ${INSTALL}
26
27
28COMPILE = $(CC) $(DEFS) -L$(LIBDIR) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $@.c -o $@ $(LIBS)
29
30.SUFFIXES:
31.SUFFIXES: .c .o
32
33.c.o:
34        ${CC} $(INCLUDES) ${CFLAGS} ${CPPFLAGS} ${DEFS} -c $<
35
36HEADER =  label.h  leaf.h node.h  ${prefix}/include/MP.h
37
38SRC = infix.c latex.c leaf.c mpview.c node.c prefix.c util.c
39
40OBJ = infix.o latex.o leaf.o mpview.o node.o prefix.o util.o
41
42DISTFILES = ${SRC} ${HEADER} Makefile.in displaymp testall README
43
44all: mpview
45
46install: mk-bindir mpview
47        ${INSTALL_PROGRAM} mpview ${bindir}
48
49mk-bindir:
50        ${top_srcdir}/mkinstalldirs ${bindir}
51
52
53mpview: ${OBJ}
54        ${CC} -o $@ $(INCLUDES) ${CFLAGS} ${DEFS} -L$(LIBDIR) ${OBJ} $(LIBS)
55
56${OBJ}: ${HEADER}
57infix.o: infix.h
58prefix.o: prefix.h
59latex.o:  latex.h
60
61TAGS:
62        etags *.c *.h
63
64test:
65        ./testall > testall.out
66
67dist:
68        rm -f  mpview.tar*
69        tar cf mpview.tar ${DISTFILES} data
70        gzip -9  mpview.tar
71
72clean:
73        rm -f ${OBJ}
74
75distclean: clean
76        rm -f mpview
77        rm -f Makefile
78
79tar: clean
80        /bin/rm -f mime.tar*
81        tar cvf mime.tar Makefile README data displaymp* infix.c \
82        infix.h label.h latex.c latex.h leaf.c leaf.h mpview.c \
83        my.mp node.c node.h prefix.c prefix.h testall testall.out
84        uuencode mime.tar mime.tar > mime.tar.uue
Note: See TracBrowser for help on using the repository browser.