source: git/IntegerProgramming/Makefile.in.SAVE @ ba5e9e

spielwiese
Last change on this file since ba5e9e was 76f3a18, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
added building binary programs from IntegerProgramming: toric_ideal, solve_IP, change_cost, gen_test and LLL ADD: IntegerProgramming is a SUBPACKAGE of the main package CHG: removing obsolette stuff (gccversion.sh) CHG: use gmp.h instead of si_gmp.h! TODO: install help files properly (only distributed for now)
  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[6ba162]1## Makefile for integer programming
[6993ab7]2SINGUNAME       = @SINGUNAME@
[6ba162]3##
4## various paths
5##
6bindir          = @bindir@
[454132]7prefix          = @prefix@
8slibdir         = ${prefix}/LIB
[6993ab7]9install_bindir  = ${install_prefix}/${SINGUNAME}
[a70d5e]10libdir          = @libdir@
11
[6ba162]12
13##
14## various programs
15##
16@SET_MAKE@
17CXX             = @CXX@
[3e75fc]18## gcc won't work
19ifeq ($(CXX),gcc)
20CXX := c++
21endif
22
[b49b89]23INSTALL         = @INSTALL@
[056f98]24INSTALL_PROGRAM = @INSTALL_PROGRAM@  -s
[6ba162]25MKINSTALLDIRS   = ../mkinstalldirs
26
27##
28## compiler and linker options
29##
[ce3dda]30CPPFLAGS        = -I. @CPPFLAGS@
[6ba162]31CXXFLAGS        = @CXXFLAGS@
[a70d5e]32LDFLAGS         = -L${libdir} @LDFLAGS@ -lgmp
[6ba162]33
34
35MAIN1   := solve_IP
36OBJECTS1:= $(MAIN1).o
37
38MAIN2   := change_cost
39OBJECTS2:= $(MAIN2).o
40
41MAIN3   := toric_ideal
42OBJECTS3:= $(MAIN3).o
43
44MAIN4   := gen_test
45OBJECTS4:= $(MAIN4).o
46
[9ec090]47LLL   := LLL
48OBJECTS_LLL:= LLL_lattice_to_send.o
49
[4b2690]50%.o: %.cc si_gcc_v.h
[0183d6]51        $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
[6ba162]52
[9ec090]53all: $(MAIN1) $(MAIN2) $(MAIN3) $(MAIN4) $(LLL)
[6ba162]54
[a1ab2a]55install-nolns: install
56
[be6689f]57install_all: install
58
[187af9]59install install-libsingular: $(MAIN1) $(MAIN2) $(MAIN3) $(MAIN4) $(LLL)
[6993ab7]60        ${MKINSTALLDIRS} ${bindir}
[6ba162]61        ${INSTALL_PROGRAM} $(MAIN1) ${bindir}
62        ${INSTALL_PROGRAM} $(MAIN2) ${bindir}
63        ${INSTALL_PROGRAM} $(MAIN3) ${bindir}
64        ${INSTALL_PROGRAM} $(MAIN4) ${bindir}
[9ec090]65        ${INSTALL_PROGRAM} $(LLL) ${bindir}
[6ba162]66
[187af9]67install-bindist: $(MAIN1) $(MAIN2) $(MAIN3) $(MAIN4)
[6993ab7]68        ${MKINSTALLDIRS} ${install_bindir}
69        ${INSTALL_PROGRAM} -s $(MAIN1) ${install_bindir}
70        ${INSTALL_PROGRAM} -s $(MAIN2) ${install_bindir}
71        ${INSTALL_PROGRAM} -s $(MAIN3) ${install_bindir}
72        ${INSTALL_PROGRAM} -s $(MAIN4) ${install_bindir}
[eaf4cb]73        ${INSTALL_PROGRAM} -s $(LLL) ${install_bindir}
[6993ab7]74
[6ba162]75clean:
[4b2690]76        rm -f *.o *~  $(MAIN1) $(MAIN2) $(MAIN3) $(MAIN4) $(LLL) si_gcc_v.h
[6ba162]77
[1dba07]78depend:
79        @echo "No make depend available!"
80
[6ba162]81distclean: clean
[454132]82        -rm -f ${bindir}/$(MAIN1)
83        -rm -f ${bindir}/$(MAIN2)
84        -rm -f ${bindir}/$(MAIN3)
85        -rm -f ${bindir}/$(MAIN4)
[9ec090]86        -rm -f ${bindir}/$(LLL)
[6ba162]87
[4b2690]88si_gcc_v.h:
89        ./gccversion.sh
90
[6ba162]91$(MAIN1): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \
92        ideal.o \
93        Buchberger.o ideal_stuff.o IP_algorithms.o testdata.o \
94        $(OBJECTS1)
95        $(CXX) $^ -o $@ $(LDFLAGS)
96
97$(MAIN2): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \
98        ideal.o \
99        Buchberger.o ideal_stuff.o IP_algorithms.o testdata.o  \
100        $(OBJECTS2)
101        $(CXX)  $^ -o $@ $(LDFLAGS)
102
103$(MAIN3): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \
104        ideal.o \
105        Buchberger.o ideal_stuff.o IP_algorithms.o testdata.o \
106        $(OBJECTS3)
107        $(CXX)  $^ -o $@ $(LDFLAGS)
108
109$(MAIN4): term_ordering.o binomial.o list.o BigInt.o LLL.o matrix.o \
110        ideal.o \
111        Buchberger.o ideal_stuff.o IP_algorithms.o testdata.o \
112        $(OBJECTS4)
113        $(CXX)  $^ -o $@ $(LDFLAGS)
[3e75fc]114
[9ec090]115$(LLL): $(OBJECTS_LLL)
116        $(CXX)  $^ -o $@ $(LDFLAGS)
117
[3e75fc]118Makefile: Makefile.in
119        cd ..;  CONFIG_FILES="IntegerProgramming/Makefile" CONFIG_HEADERS= ./config.status
120
Note: See TracBrowser for help on using the repository browser.