source: git/MP/MP/Makefile.in @ 7adb502

spielwiese
Last change on this file since 7adb502 was 7adb502, checked in by Olaf Bachmann <obachman@…>, 27 years ago
* removed conflicts from MP_1_1_2_0 conflicts git-svn-id: file:///usr/local/Singular/svn/trunk@444 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.8 KB
Line 
1#################################################################
2###
3### Makefile for MP library
4###
5#################################################################
6
7SHELL           = /bin/sh
8
9##
10## versions
11##
12PRODUCT         = @PRODUCT@
13VERSION         = @VERSION@
14
15##
16## various paths
17##
18top_srcdir      = @top_srcdir@
19prefix          = @prefix@
20exec_prefix     = @exec_prefix@
21# header file is installed here
22includedir      = @includedir@
23# library is installed here
24libdir          = @libdir@
25# header files reside here
26hdir            = h
27
28##
29## various programs
30##
31@SET_MAKE@
32CLEAN           = @CLEAN@
33CC              = @CC@
34AR              = @AR@
35RANLIB          = ranlib
36RANLIB_TEST = [ -f /usr/bin/ranlib -o -f /bin/ranlib ]
37INSTALL         = ../install-sh -c
38INSTALL_PROGRAM = ${INSTALL}
39INSTALL_DATA    = ${INSTALL} -m 644
40MKINSTALLDIRS   = ../mkinstalldirs
41
42##
43## compiler and linker options
44##
45CFLAGS          = @CFLAGS@
46CPPFLAGS        = -I. @CPPFLAGS@
47DEFS            = @DEFS@
48
49##
50## End configuration dependend stuff
51#################################################################
52
53##
54## file sets
55##
56
57SRCS =  MP_Link.c MP_Put.c MP_Get.c MP_Error.c MP_Util.c MP_Annotations.c \
58        MP_Vector.c MP_Env.c MP_FileTransp.c MP_TcpTransp.c \
59        MP_Buffer.c MP_BigNum.c Memory.c \
60        MP_GmpBigInt.c MP_GmpBigReal.c MP_PariBigInt.c \
61        MP_SacBigInt.c MP_TbTransp.c MP_PvmTransp.c
62
63OBJS= MP_Link.o MP_Put.o MP_Get.o MP_Error.o MP_Util.o MP_Annotations.o  \
64        MP_Vector.o  MP_Env.o MP_FileTransp.o MP_TcpTransp.o  \
65        MP_Buffer.o MP_BigNum.o MP_Memory.o   \
66        MP_GmpBigInt.o MP_GmpBigReal.o MP_PariBigInt.o \
67        MP_SacBigInt.o MP_TbTransp.o MP_PvmTransp.o
68
69HEADERS= ${hdir}/MP.h  ${hdir}/MP_FileTransp.h ${hdir}/MP_ProtoDict.h \
70        ${hdir}/MP_Get.h ${hdir}/MP_Put.h ${hdir}/MP_GmpBigInt.h \
71        ${hdir}/MP_GmpBigReal.h ${hdir}/MP_PvmTransp.h ${hdir}/MP_SacBigInt.h\
72        ${hdir}/MP_Annotations.h ${hdir}/MP_Link.h ${hdir}/MP_TbTransp.h \
73        ${hdir}/MP_BasicDict.h ${hdir}/MP_MatrixDict.h ${hdir}/MP_TcpTransp.h\
74        ${hdir}/MP_BigNum.h ${hdir}/MP_Memory.h ${hdir}/MP_PolyDict.h \
75        ${hdir}/MP_Types.h ${hdir}/MP_BuffTypes.h ${hdir}/MP_MpDict.h \
76        ${hdir}/MP_Util.h ${hdir}/MP_Buffer.h ${hdir}/MP_NumberDict.h \
77        ${hdir}/MP_Vector.h ${hdir}/MP_Env.h ${hdir}/MP_PariBigInt.h \
78        ${hdir}/MP_Error.h
79
80DISTFILES=${HEADERS} ${SOURCES} ${hdir}/MP_Config.h.in Makefile.in \
81          makeheader.pl MP.h
82
83.SUFFIXES:
84.SUFFIXES: .c .o
85.c.o:
86        $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $<
87
88all: libMP.a
89
90libMP.a: MP.h MP_Config.h Makefile $(OBJS)
91        rm -f $@
92        $(AR) cr $@ $(OBJS)
93        if $(RANLIB_TEST) ; then $(RANLIB) $@; else true; fi
94#       $(RANLIB) $@
95
96install: libMP.a
97        ${MKINSTALLDIRS} ${libdir}
98        ${MKINSTALLDIRS} ${includedir}
99        $(INSTALL_DATA) libMP.a $(libdir)
100        if $(RANLIB_TEST) ; then $(RANLIB) $(libdir)/libMP.a; else true; fi
101        $(INSTALL_DATA) MP.h $(includedir)
102        $(INSTALL_DATA) MP_Config.h $(includedir)       
103        -chmod a-x $(libdir)/libMP.a $(includedir)/MP.h $(includedir)/MP_Config.h
104
105clean:
106        ${CLEAN}
107        rm -f libMP.a tmp.* tmp-* MP.tar*
108        cd ${hdir}; ${CLEAN}
109
110uninstall:
111        rm -f $(libdir)/libMP.a $(includedir)/MP.h
112        - rmdir $(libdir) $(includedir)
113
114distclean: clean 
115        rm -f Makefile MP_Config.h stamp-h
116
117maintainer-clean: distclean
118        @echo "This command is intendended for maintainers"
119        @echo "You need perl to rebuild the deleted file"
120        rm -f MP.h
121       
122MP.h: ${HEADERS}
123        perl ./makeheader.pl -I${hdir} ${hdir}/MP.h MP.h
124
125MP_Config.h: stamp-h
126
127stamp-h : ${top_srcdir}/config.status ${hdir}/MP_Config.h.in
128        cd ${top_srcdir}; \
129        CONFIG_HEADERS="MP/MP_Config.h:MP/h/MP_Config.h.in" CONFIG_FILES= \
130        ./config.status
131
132Makefile: ${top_srcdir}/config.status Makefile.in
133        cd ${top_srcdir}; CONFIG_HEADERS= CONFIG_FILES=MP/Makefile ./config.status
134
135${top_srcdir}/config.status : ${top_srcdir}/configure
136        cd ${top_srcdir}; ${MAKE} config.status
137
138${top_srcdir}/configure: ${top_srcdir}/configure.in
139        cd ${top_srcdir}; ${MAKE} configure
140
141TAGS:
142        etags *.c ${hdir}/*.h
143
144dist: MP.h
145        rm -f MP.tar*
146        tar cf MP.tar ${DISTFILES} ChangeLog
147        gzip -9 MP.tar
148
149depend:
150        $(CC) -MM $(CPPFLAGS) $(DEFS) $(SRCS) >> Makefile
Note: See TracBrowser for help on using the repository browser.