source: git/MP/MPT/Makefile.in @ 72ebdb

fieker-DuValspielwiese
Last change on this file since 72ebdb was 8f8407, checked in by Hans Schönemann <hannes@…>, 25 years ago
*hannes: fixed compiler git-svn-id: file:///usr/local/Singular/svn/trunk@2996 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@
25CXX             = @CXX@
26AR              = @AR@
27RANLIB          = @RANLIB@
28INSTALL         = ../install-sh -c
29INSTALL_PROGRAM = ${INSTALL}
30INSTALL_DATA    = ${INSTALL} -m 644
31MKINSTALLDIRS   = ../mkinstalldirs
32
33##
34## compiler and linker options
35##
36CFLAGS          = @CFLAGS@
37CPPFLAGS        = -I. -I${mp_srcdir} @CPPFLAGS@
38DEFS            = @DEFS@
39
40##
41## End configuration dependend stuff
42#################################################################
43
44
45##
46## file sets
47##
48
49SRCS = MPT_Tree.cc MPT_Error.cc MPT_ExternalData.cc MPT_Misc.cc \
50       MPT_ApNumber.cc MPT_Get.cc MPT_Put.cc MPT_TreeManips.cc \
51       MPT_PolyManips.cc MPT_PutPoly.cc MPT_GetPoly.cc \
52       GP_IsOk.cc MPT_GP.cc
53
54OBJS = MPT_Tree.o MPT_Error.o MPT_ExternalData.o MPT_Misc.o \
55       MPT_ApNumber.o MPT_Get.o MPT_Put.o MPT_TreeManips.o \
56       MPT_PolyManips.o MPT_PutPoly.o MPT_GetPoly.o \
57       GP_IsOk.o MPT_GP.o
58
59DISTFILES = ${SRCS} MPT.h Makefile.in GP.h MPT_GP.h
60
61.SUFFIXES:
62.SUFFIXES: .cc .o
63
64.cc.o: ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h MPT.h
65        $(CXX) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $<
66
67
68all: libMPT.a ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h Makefile
69
70GP_IsOk.o MPT_GP.o: MPT_GP.h GP.h
71
72libMPT.a:  $(OBJS) ${mp_srcdir}/MP.h ${mp_srcdir}/MP_Config.h MPT.h Makefile
73        rm -f $@
74        $(AR) cr $@ $(OBJS)
75        $(RANLIB) $@
76
77install: libMPT.a
78        $(MKINSTALLDIRS) $(libdir)
79        $(MKINSTALLDIRS) $(includedir)
80        $(INSTALL_DATA) libMPT.a $(libdir)
81        $(RANLIB) $(libdir)/libMPT.a
82        $(INSTALL_DATA) MPT.h $(includedir)
83        $(INSTALL_DATA) MPT_GP.h $(includedir)
84        $(INSTALL_DATA) GP.h $(includedir)
85        -chmod a-x $(libdir)/libMPT.a $(includedir)/MPT.h
86
87uninstall:
88        rm -f libMPT.a
89        rm -f $(libdir)/libMPT.a
90        rm -f $(includedir)/MPT.h
91        - rmdir $(includedir)
92        - rmdir $(libdir)
93
94clean:
95        ${CLEAN}
96        rm -f libMPT.a tmp.* tmp-*
97
98distclean maintainer-clean: clean 
99        rm -f Makefile
100
101${mp_srcdir}/MP.h:
102        cd ${mp_srcdir}; ${MAKE} MP.h
103
104${mp_srcdir}/MP_Config.h:
105        cd ${mp_srcdir}; ${MAKE} MP_Config.h
106
107Makefile: Makefile.in
108        cd ..; rm -f Makefile; ${MAKE} Makefile
109
110TAGS:
111        etags *.cc *.h
112
113dist:
114        rm -f MPT.tar*
115        tar cf MPT.tar ${DISTFILES} ChangeLog
116        gzip -9 MPT.tar
117
118depend:
119        $(CC) -MM $(CPPFLAGS) $(DEFS) $(SRCS) >> Makefile
120
121test: test.cc
122        $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) test.cc -o test -L$(libdir) -lMPT -lMP -lgmp
Note: See TracBrowser for help on using the repository browser.