alpar@1: # Build GLPK for MMIX with GCC cross-compiler alpar@1: alpar@1: #**********************************************************************# alpar@1: # You can use this Makefile to build GLPK with GCC cross-compiler for # alpar@1: # MMIX. No configuring is needed. # alpar@1: # # alpar@1: # MMIX is a 64-bit RISC computer for the third millennium designed by # alpar@1: # Prof. Donald Knuth. For details see: # alpar@1: # # alpar@1: # http://www-cs-faculty.stanford.edu/~knuth/mmix.html # alpar@1: # http://en.wikipedia.org/wiki/MMIX # alpar@1: # http://www.malgil.com/mmix # alpar@1: # # alpar@1: # The GNU MMIX compiler tool-suite (GCC backend, binutils, and newlib) # alpar@1: # was developed by Hans-Peter Nilsson. You may follow his instructions # alpar@1: # to build and install the MMIX tools; see: # alpar@1: # # alpar@1: # http://bitrange.com/mmix/install.html # alpar@1: #**********************************************************************# alpar@1: alpar@1: GCC = mmix-gcc alpar@1: AR = mmix-ar alpar@1: MMIX = mmix alpar@1: CFLAGS = -O2 alpar@1: alpar@1: OBJSET = \ alpar@1: src/glpapi01.o \ alpar@1: src/glpapi02.o \ alpar@1: src/glpapi03.o \ alpar@1: src/glpapi04.o \ alpar@1: src/glpapi05.o \ alpar@1: src/glpapi06.o \ alpar@1: src/glpapi07.o \ alpar@1: src/glpapi08.o \ alpar@1: src/glpapi09.o \ alpar@1: src/glpapi10.o \ alpar@1: src/glpapi11.o \ alpar@1: src/glpapi12.o \ alpar@1: src/glpapi13.o \ alpar@1: src/glpapi14.o \ alpar@1: src/glpapi15.o \ alpar@1: src/glpapi16.o \ alpar@1: src/glpapi17.o \ alpar@1: src/glpapi18.o \ alpar@1: src/glpapi19.o \ alpar@1: src/glpavl.o \ alpar@1: src/glpbfd.o \ alpar@1: src/glpbfx.o \ alpar@1: src/glpcpx.o \ alpar@1: src/glpdmp.o \ alpar@1: src/glpdmx.o \ alpar@1: src/glpenv01.o \ alpar@1: src/glpenv02.o \ alpar@1: src/glpenv03.o \ alpar@1: src/glpenv04.o \ alpar@1: src/glpenv05.o \ alpar@1: src/glpenv06.o \ alpar@1: src/glpenv07.o \ alpar@1: src/glpenv08.o \ alpar@1: src/glpfhv.o \ alpar@1: src/glpgmp.o \ alpar@1: src/glphbm.o \ alpar@1: src/glpini01.o \ alpar@1: src/glpini02.o \ alpar@1: src/glpios01.o \ alpar@1: src/glpios02.o \ alpar@1: src/glpios03.o \ alpar@1: src/glpios04.o \ alpar@1: src/glpios05.o \ alpar@1: src/glpios06.o \ alpar@1: src/glpios07.o \ alpar@1: src/glpios08.o \ alpar@1: src/glpios09.o \ alpar@1: src/glpios10.o \ alpar@1: src/glpios11.o \ alpar@1: src/glpios12.o \ alpar@1: src/glpipm.o \ alpar@1: src/glplib01.o \ alpar@1: src/glplib02.o \ alpar@1: src/glplib03.o \ alpar@1: src/glplpf.o \ alpar@1: src/glplpx01.o \ alpar@1: src/glplpx02.o \ alpar@1: src/glplpx03.o \ alpar@1: src/glpluf.o \ alpar@1: src/glplux.o \ alpar@1: src/glpmat.o \ alpar@1: src/glpmpl01.o \ alpar@1: src/glpmpl02.o \ alpar@1: src/glpmpl03.o \ alpar@1: src/glpmpl04.o \ alpar@1: src/glpmpl05.o \ alpar@1: src/glpmpl06.o \ alpar@1: src/glpmps.o \ alpar@1: src/glpnet01.o \ alpar@1: src/glpnet02.o \ alpar@1: src/glpnet03.o \ alpar@1: src/glpnet04.o \ alpar@1: src/glpnet05.o \ alpar@1: src/glpnet06.o \ alpar@1: src/glpnet07.o \ alpar@1: src/glpnet08.o \ alpar@1: src/glpnet09.o \ alpar@1: src/glpnpp01.o \ alpar@1: src/glpnpp02.o \ alpar@1: src/glpnpp03.o \ alpar@1: src/glpnpp04.o \ alpar@1: src/glpnpp05.o \ alpar@1: src/glpqmd.o \ alpar@1: src/glprgr.o \ alpar@1: src/glprng01.o \ alpar@1: src/glprng02.o \ alpar@1: src/glpscf.o \ alpar@1: src/glpscl.o \ alpar@1: src/glpsdf.o \ alpar@1: src/glpspm.o \ alpar@1: src/glpspx01.o \ alpar@1: src/glpspx02.o \ alpar@1: src/glpsql.o \ alpar@1: src/glpssx01.o \ alpar@1: src/glpssx02.o \ alpar@1: src/glptsp.o \ alpar@1: src/amd/amd_1.o \ alpar@1: src/amd/amd_2.o \ alpar@1: src/amd/amd_aat.o \ alpar@1: src/amd/amd_control.o \ alpar@1: src/amd/amd_defaults.o \ alpar@1: src/amd/amd_dump.o \ alpar@1: src/amd/amd_info.o \ alpar@1: src/amd/amd_order.o \ alpar@1: src/amd/amd_post_tree.o \ alpar@1: src/amd/amd_postorder.o \ alpar@1: src/amd/amd_preprocess.o \ alpar@1: src/amd/amd_valid.o \ alpar@1: src/colamd/colamd.o alpar@1: alpar@1: .c.o: alpar@1: $(GCC) $(CFLAGS) -Iinclude -Isrc -o $@ -c $< alpar@1: alpar@1: all: libglpk.a glpsol.mmo alpar@1: alpar@1: libglpk.a: $(OBJSET) alpar@1: $(AR) cru libglpk.a $(OBJSET) alpar@1: alpar@1: glpsol.mmo: examples/glpsol.o libglpk.a alpar@1: $(GCC) $(CFLAGS) -o glpsol.mmo examples/glpsol.o libglpk.a -lm alpar@1: alpar@1: check: glpsol.mmo alpar@1: $(MMIX) glpsol.mmo --mps examples/plan.mps