source: git/MP/MPT/Makefile.in @ 07cbfe

spielwiese
Last change on this file since 07cbfe was 07cbfe, checked in by Olaf Bachmann <obachman@…>, 25 years ago
* as we go along git-svn-id: file:///usr/local/Singular/svn/trunk@2653 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 2.6 KB
Line 
1#################################################################
2###
3### Makefile for MPT library
4###
5#################################################################
6
7SHELL           = /bin/sh
8
9##
10## various paths
11##
12top_srcdir      = @top_srcdir@
13prefix          = @prefix@
14exec_prefix     = @exec_prefix@
15# header file is installed here
16includedir      = @includedir@
17# library is installed here
18libdir          = @libdir@
19# MP sources and MP.h reside here
20mp_srcdir       = ../MP
21
22@SET_MAKE@
23CLEAN           = @CLEAN@
24CC              = @CC@
25AR              = @AR@
26RANLIB          = @RANLIB@
27INSTALL         = ../install-sh -c
28INSTALL_PROGRAM = ${INSTALL}
29INSTALL_DATA    = ${INSTALL} -m 644
30MKINSTALLDIRS   = ../mkinstalldirs
31
32##
33## compiler and linker options
34##
35CFLAGS          = @CFLAGS@
36CPPFLAGS        = -I. -I${mp_srcdir} @CPPFLAGS@
37DEFS            = @DEFS@
38
39##
40## End configuration dependend stuff
41#################################################################
42
43
44##
45## file sets
46##
47
48SRCS = MPT_Tree.cc MPT_Error.cc MPT_ExternalData.cc MPT_Misc.cc \
49       MPT_ApNumber.cc MPT_Get.cc MPT_Put.cc MPT_TreeManips.cc \
50       MPT_PolyManips.cc MPT_PutPoly.cc MPT_GetPoly.cc \
51       GP_IsOk.cc MPT_GP.cc
52
53OBJS = MPT_Tree.o MPT_Error.o MPT_ExternalData.o MPT_Misc.o \
54       MPT_ApNumber.o MPT_Get.o MPT_Put.o MPT_TreeManips.o \
55       MPT_PolyManips.o MPT_PutPoly.o MPT_GetPoly.o \
56       GP_IsOk.o MPT_GP.o
57
58DISTFILES = ${SRCS} MPT.h Makefile.in GP.h MPT_GP.h
59
60.SUFFIXES:
61.SUFFIXES: .cc .o
62
63.cc.o: ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h MPT.h
64        $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $<
65
66
67all: libMPT.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h Makefile
68
69GP_IsOk.o MPT_GP.o: MPT_GP.h GP.h
70
71libMPT.a:  $(OBJS) ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h MPT.h Makefile
72        rm -f $@
73        $(AR) cr $@ $(OBJS)
74        $(RANLIB) $@
75
76install: libMPT.a
77        $(MKINSTALLDIRS) $(libdir)
78        $(MKINSTALLDIRS) $(includedir)
79        $(INSTALL_DATA) libMPT.a $(libdir)
80        $(RANLIB) $(libdir)/libMPT.a
81        $(INSTALL_DATA) MPT.h $(includedir)
82        $(INSTALL_DATA) MPT_GP.h $(includedir)
83        $(INSTALL_DATA) GP.h $(includedir)
84        -chmod a-x $(libdir)/libMPT.a $(includedir)/MPT.h
85
86uninstall:
87        rm -f libMPT.a
88        rm -f $(libdir)/libMPT.a
89        rm -f $(includedir)/MPT.h
90        - rmdir $(includedir)
91        - rmdir $(libdir)
92
93clean:
94        ${CLEAN}
95        rm -f libMPT.a tmp.* tmp-*
96
97distclean maintainer-clean: clean 
98        rm -f Makefile
99
100${mp_srcdir}/MP.h:
101        cd ${mp_srcdir}; ${MAKE} MP.h
102
103${mp_srcdir}/MP_Config.h:
104        cd ${mp_srcdir}; ${MAKE} MP_Config.h
105
106Makefile: Makefile.in
107        cd ..; rm -f Makefile; ${MAKE} Makefile
108
109TAGS:
110        etags *.cc *.h
111
112dist:
113        rm -f MPT.tar*
114        tar cf MPT.tar ${DISTFILES} ChangeLog
115        gzip -9 MPT.tar
116
117depend:
118        $(CC) -MM $(CPPFLAGS) $(DEFS) $(SRCS) >> Makefile
119
120test: test.cc
121        $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) test.cc -o test -L$(libdir) -lMPT -lMP -lgmp
Note: See TracBrowser for help on using the repository browser.