author | Alpar Juttner <alpar@cs.elte.hu> |
Mon, 06 Dec 2010 13:09:21 +0100 | |
changeset 1 | c445c931472f |
permissions | -rw-r--r-- |
1 # Build GLPK for MMIX with GCC cross-compiler
3 #**********************************************************************#
4 # You can use this Makefile to build GLPK with GCC cross-compiler for #
5 # MMIX. No configuring is needed. #
6 # #
7 # MMIX is a 64-bit RISC computer for the third millennium designed by #
8 # Prof. Donald Knuth. For details see: #
9 # #
10 # http://www-cs-faculty.stanford.edu/~knuth/mmix.html #
11 # http://en.wikipedia.org/wiki/MMIX #
12 # http://www.malgil.com/mmix #
13 # #
14 # The GNU MMIX compiler tool-suite (GCC backend, binutils, and newlib) #
15 # was developed by Hans-Peter Nilsson. You may follow his instructions #
16 # to build and install the MMIX tools; see: #
17 # #
18 # http://bitrange.com/mmix/install.html #
19 #**********************************************************************#
21 GCC = mmix-gcc
22 AR = mmix-ar
23 MMIX = mmix
24 CFLAGS = -O2
26 OBJSET = \
27 src/glpapi01.o \
28 src/glpapi02.o \
29 src/glpapi03.o \
30 src/glpapi04.o \
31 src/glpapi05.o \
32 src/glpapi06.o \
33 src/glpapi07.o \
34 src/glpapi08.o \
35 src/glpapi09.o \
36 src/glpapi10.o \
37 src/glpapi11.o \
38 src/glpapi12.o \
39 src/glpapi13.o \
40 src/glpapi14.o \
41 src/glpapi15.o \
42 src/glpapi16.o \
43 src/glpapi17.o \
44 src/glpapi18.o \
45 src/glpapi19.o \
46 src/glpavl.o \
47 src/glpbfd.o \
48 src/glpbfx.o \
49 src/glpcpx.o \
50 src/glpdmp.o \
51 src/glpdmx.o \
52 src/glpenv01.o \
53 src/glpenv02.o \
54 src/glpenv03.o \
55 src/glpenv04.o \
56 src/glpenv05.o \
57 src/glpenv06.o \
58 src/glpenv07.o \
59 src/glpenv08.o \
60 src/glpfhv.o \
61 src/glpgmp.o \
62 src/glphbm.o \
63 src/glpini01.o \
64 src/glpini02.o \
65 src/glpios01.o \
66 src/glpios02.o \
67 src/glpios03.o \
68 src/glpios04.o \
69 src/glpios05.o \
70 src/glpios06.o \
71 src/glpios07.o \
72 src/glpios08.o \
73 src/glpios09.o \
74 src/glpios10.o \
75 src/glpios11.o \
76 src/glpios12.o \
77 src/glpipm.o \
78 src/glplib01.o \
79 src/glplib02.o \
80 src/glplib03.o \
81 src/glplpf.o \
82 src/glplpx01.o \
83 src/glplpx02.o \
84 src/glplpx03.o \
85 src/glpluf.o \
86 src/glplux.o \
87 src/glpmat.o \
88 src/glpmpl01.o \
89 src/glpmpl02.o \
90 src/glpmpl03.o \
91 src/glpmpl04.o \
92 src/glpmpl05.o \
93 src/glpmpl06.o \
94 src/glpmps.o \
95 src/glpnet01.o \
96 src/glpnet02.o \
97 src/glpnet03.o \
98 src/glpnet04.o \
99 src/glpnet05.o \
100 src/glpnet06.o \
101 src/glpnet07.o \
102 src/glpnet08.o \
103 src/glpnet09.o \
104 src/glpnpp01.o \
105 src/glpnpp02.o \
106 src/glpnpp03.o \
107 src/glpnpp04.o \
108 src/glpnpp05.o \
109 src/glpqmd.o \
110 src/glprgr.o \
111 src/glprng01.o \
112 src/glprng02.o \
113 src/glpscf.o \
114 src/glpscl.o \
115 src/glpsdf.o \
116 src/glpspm.o \
117 src/glpspx01.o \
118 src/glpspx02.o \
119 src/glpsql.o \
120 src/glpssx01.o \
121 src/glpssx02.o \
122 src/glptsp.o \
123 src/amd/amd_1.o \
124 src/amd/amd_2.o \
125 src/amd/amd_aat.o \
126 src/amd/amd_control.o \
127 src/amd/amd_defaults.o \
128 src/amd/amd_dump.o \
129 src/amd/amd_info.o \
130 src/amd/amd_order.o \
131 src/amd/amd_post_tree.o \
132 src/amd/amd_postorder.o \
133 src/amd/amd_preprocess.o \
134 src/amd/amd_valid.o \
135 src/colamd/colamd.o
137 .c.o:
138 $(GCC) $(CFLAGS) -Iinclude -Isrc -o $@ -c $<
140 all: libglpk.a glpsol.mmo
142 libglpk.a: $(OBJSET)
143 $(AR) cru libglpk.a $(OBJSET)
145 glpsol.mmo: examples/glpsol.o libglpk.a
146 $(GCC) $(CFLAGS) -o glpsol.mmo examples/glpsol.o libglpk.a -lm
148 check: glpsol.mmo
149 $(MMIX) glpsol.mmo --mps examples/plan.mps