1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Makefile_MMIX Mon Dec 06 13:09:21 2010 +0100
1.3 @@ -0,0 +1,149 @@
1.4 +# Build GLPK for MMIX with GCC cross-compiler
1.5 +
1.6 +#**********************************************************************#
1.7 +# You can use this Makefile to build GLPK with GCC cross-compiler for #
1.8 +# MMIX. No configuring is needed. #
1.9 +# #
1.10 +# MMIX is a 64-bit RISC computer for the third millennium designed by #
1.11 +# Prof. Donald Knuth. For details see: #
1.12 +# #
1.13 +# http://www-cs-faculty.stanford.edu/~knuth/mmix.html #
1.14 +# http://en.wikipedia.org/wiki/MMIX #
1.15 +# http://www.malgil.com/mmix #
1.16 +# #
1.17 +# The GNU MMIX compiler tool-suite (GCC backend, binutils, and newlib) #
1.18 +# was developed by Hans-Peter Nilsson. You may follow his instructions #
1.19 +# to build and install the MMIX tools; see: #
1.20 +# #
1.21 +# http://bitrange.com/mmix/install.html #
1.22 +#**********************************************************************#
1.23 +
1.24 +GCC = mmix-gcc
1.25 +AR = mmix-ar
1.26 +MMIX = mmix
1.27 +CFLAGS = -O2
1.28 +
1.29 +OBJSET = \
1.30 +src/glpapi01.o \
1.31 +src/glpapi02.o \
1.32 +src/glpapi03.o \
1.33 +src/glpapi04.o \
1.34 +src/glpapi05.o \
1.35 +src/glpapi06.o \
1.36 +src/glpapi07.o \
1.37 +src/glpapi08.o \
1.38 +src/glpapi09.o \
1.39 +src/glpapi10.o \
1.40 +src/glpapi11.o \
1.41 +src/glpapi12.o \
1.42 +src/glpapi13.o \
1.43 +src/glpapi14.o \
1.44 +src/glpapi15.o \
1.45 +src/glpapi16.o \
1.46 +src/glpapi17.o \
1.47 +src/glpapi18.o \
1.48 +src/glpapi19.o \
1.49 +src/glpavl.o \
1.50 +src/glpbfd.o \
1.51 +src/glpbfx.o \
1.52 +src/glpcpx.o \
1.53 +src/glpdmp.o \
1.54 +src/glpdmx.o \
1.55 +src/glpenv01.o \
1.56 +src/glpenv02.o \
1.57 +src/glpenv03.o \
1.58 +src/glpenv04.o \
1.59 +src/glpenv05.o \
1.60 +src/glpenv06.o \
1.61 +src/glpenv07.o \
1.62 +src/glpenv08.o \
1.63 +src/glpfhv.o \
1.64 +src/glpgmp.o \
1.65 +src/glphbm.o \
1.66 +src/glpini01.o \
1.67 +src/glpini02.o \
1.68 +src/glpios01.o \
1.69 +src/glpios02.o \
1.70 +src/glpios03.o \
1.71 +src/glpios04.o \
1.72 +src/glpios05.o \
1.73 +src/glpios06.o \
1.74 +src/glpios07.o \
1.75 +src/glpios08.o \
1.76 +src/glpios09.o \
1.77 +src/glpios10.o \
1.78 +src/glpios11.o \
1.79 +src/glpios12.o \
1.80 +src/glpipm.o \
1.81 +src/glplib01.o \
1.82 +src/glplib02.o \
1.83 +src/glplib03.o \
1.84 +src/glplpf.o \
1.85 +src/glplpx01.o \
1.86 +src/glplpx02.o \
1.87 +src/glplpx03.o \
1.88 +src/glpluf.o \
1.89 +src/glplux.o \
1.90 +src/glpmat.o \
1.91 +src/glpmpl01.o \
1.92 +src/glpmpl02.o \
1.93 +src/glpmpl03.o \
1.94 +src/glpmpl04.o \
1.95 +src/glpmpl05.o \
1.96 +src/glpmpl06.o \
1.97 +src/glpmps.o \
1.98 +src/glpnet01.o \
1.99 +src/glpnet02.o \
1.100 +src/glpnet03.o \
1.101 +src/glpnet04.o \
1.102 +src/glpnet05.o \
1.103 +src/glpnet06.o \
1.104 +src/glpnet07.o \
1.105 +src/glpnet08.o \
1.106 +src/glpnet09.o \
1.107 +src/glpnpp01.o \
1.108 +src/glpnpp02.o \
1.109 +src/glpnpp03.o \
1.110 +src/glpnpp04.o \
1.111 +src/glpnpp05.o \
1.112 +src/glpqmd.o \
1.113 +src/glprgr.o \
1.114 +src/glprng01.o \
1.115 +src/glprng02.o \
1.116 +src/glpscf.o \
1.117 +src/glpscl.o \
1.118 +src/glpsdf.o \
1.119 +src/glpspm.o \
1.120 +src/glpspx01.o \
1.121 +src/glpspx02.o \
1.122 +src/glpsql.o \
1.123 +src/glpssx01.o \
1.124 +src/glpssx02.o \
1.125 +src/glptsp.o \
1.126 +src/amd/amd_1.o \
1.127 +src/amd/amd_2.o \
1.128 +src/amd/amd_aat.o \
1.129 +src/amd/amd_control.o \
1.130 +src/amd/amd_defaults.o \
1.131 +src/amd/amd_dump.o \
1.132 +src/amd/amd_info.o \
1.133 +src/amd/amd_order.o \
1.134 +src/amd/amd_post_tree.o \
1.135 +src/amd/amd_postorder.o \
1.136 +src/amd/amd_preprocess.o \
1.137 +src/amd/amd_valid.o \
1.138 +src/colamd/colamd.o
1.139 +
1.140 +.c.o:
1.141 + $(GCC) $(CFLAGS) -Iinclude -Isrc -o $@ -c $<
1.142 +
1.143 +all: libglpk.a glpsol.mmo
1.144 +
1.145 +libglpk.a: $(OBJSET)
1.146 + $(AR) cru libglpk.a $(OBJSET)
1.147 +
1.148 +glpsol.mmo: examples/glpsol.o libglpk.a
1.149 + $(GCC) $(CFLAGS) -o glpsol.mmo examples/glpsol.o libglpk.a -lm
1.150 +
1.151 +check: glpsol.mmo
1.152 + $(MMIX) glpsol.mmo --mps examples/plan.mps