COIN-OR::LEMON - Graph Library

source: glpk-cmake/Makefile_MMIX @ 1:c445c931472f

Last change on this file since 1:c445c931472f was 1:c445c931472f, checked in by Alpar Juttner <alpar@…>, 14 years ago

Import glpk-4.45

  • Generated files and doc/notes are removed
File size: 3.4 KB
RevLine 
[1]1# Build GLPK for MMIX with GCC cross-compiler
2
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#**********************************************************************#
20
21GCC = mmix-gcc
22AR = mmix-ar
23MMIX = mmix
24CFLAGS = -O2
25
26OBJSET = \
27src/glpapi01.o \
28src/glpapi02.o \
29src/glpapi03.o \
30src/glpapi04.o \
31src/glpapi05.o \
32src/glpapi06.o \
33src/glpapi07.o \
34src/glpapi08.o \
35src/glpapi09.o \
36src/glpapi10.o \
37src/glpapi11.o \
38src/glpapi12.o \
39src/glpapi13.o \
40src/glpapi14.o \
41src/glpapi15.o \
42src/glpapi16.o \
43src/glpapi17.o \
44src/glpapi18.o \
45src/glpapi19.o \
46src/glpavl.o \
47src/glpbfd.o \
48src/glpbfx.o \
49src/glpcpx.o \
50src/glpdmp.o \
51src/glpdmx.o \
52src/glpenv01.o \
53src/glpenv02.o \
54src/glpenv03.o \
55src/glpenv04.o \
56src/glpenv05.o \
57src/glpenv06.o \
58src/glpenv07.o \
59src/glpenv08.o \
60src/glpfhv.o \
61src/glpgmp.o \
62src/glphbm.o \
63src/glpini01.o \
64src/glpini02.o \
65src/glpios01.o \
66src/glpios02.o \
67src/glpios03.o \
68src/glpios04.o \
69src/glpios05.o \
70src/glpios06.o \
71src/glpios07.o \
72src/glpios08.o \
73src/glpios09.o \
74src/glpios10.o \
75src/glpios11.o \
76src/glpios12.o \
77src/glpipm.o \
78src/glplib01.o \
79src/glplib02.o \
80src/glplib03.o \
81src/glplpf.o \
82src/glplpx01.o \
83src/glplpx02.o \
84src/glplpx03.o \
85src/glpluf.o \
86src/glplux.o \
87src/glpmat.o \
88src/glpmpl01.o \
89src/glpmpl02.o \
90src/glpmpl03.o \
91src/glpmpl04.o \
92src/glpmpl05.o \
93src/glpmpl06.o \
94src/glpmps.o \
95src/glpnet01.o \
96src/glpnet02.o \
97src/glpnet03.o \
98src/glpnet04.o \
99src/glpnet05.o \
100src/glpnet06.o \
101src/glpnet07.o \
102src/glpnet08.o \
103src/glpnet09.o \
104src/glpnpp01.o \
105src/glpnpp02.o \
106src/glpnpp03.o \
107src/glpnpp04.o \
108src/glpnpp05.o \
109src/glpqmd.o \
110src/glprgr.o \
111src/glprng01.o \
112src/glprng02.o \
113src/glpscf.o \
114src/glpscl.o \
115src/glpsdf.o \
116src/glpspm.o \
117src/glpspx01.o \
118src/glpspx02.o \
119src/glpsql.o \
120src/glpssx01.o \
121src/glpssx02.o \
122src/glptsp.o \
123src/amd/amd_1.o \
124src/amd/amd_2.o \
125src/amd/amd_aat.o \
126src/amd/amd_control.o \
127src/amd/amd_defaults.o \
128src/amd/amd_dump.o \
129src/amd/amd_info.o \
130src/amd/amd_order.o \
131src/amd/amd_post_tree.o \
132src/amd/amd_postorder.o \
133src/amd/amd_preprocess.o \
134src/amd/amd_valid.o \
135src/colamd/colamd.o
136
137.c.o:
138        $(GCC) $(CFLAGS) -Iinclude -Isrc -o $@ -c $<
139
140all: libglpk.a glpsol.mmo
141
142libglpk.a: $(OBJSET)
143        $(AR) cru libglpk.a $(OBJSET)
144
145glpsol.mmo: examples/glpsol.o libglpk.a
146        $(GCC) $(CFLAGS) -o glpsol.mmo examples/glpsol.o libglpk.a -lm
147
148check: glpsol.mmo
149        $(MMIX) glpsol.mmo --mps examples/plan.mps
Note: See TracBrowser for help on using the repository browser.