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