Download this file

Makefile.m2pp    58 lines (38 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ========================================
# Makefile for m2pp Praeprocessor with GM2
# ========================================
# For GM2 the pathes below may need to be adjusted based on
# your local installation.
GM2baseDir = /usr/local/gm2/lib/gcc/i686-pc-linux-gnu/8.2.0
GM2libDir = /usr/local/gm2/libs
M2baseDir = /home/mriedl/Modula-2
# beneath M2baseDir I have subdirs
#
# "InOut/quellen.git" to hold the "InOut" files
# "StringHandler" to hold the "string handling" files (Keywords, TokenLib)
#
OPTIONS= -fiso \
-I $(GM2baseDir)/m2/iso \
-I $(GM2baseDir)/m2/pim \
-I $(GM2baseDir)/m2/cor \
-I $(M2baseDir)/InOut/quellen.git \
-I $(M2baseDir)/StringHandler \
-L $(GM2libDir) \
-O1 -g
LIBS = $(M2baseDir)/InOut/quellen.git/libInOut.gm2.a \
$(M2baseDir)/StringHandler/libStringHandler.gm2.a \
-liso -lm
M2C= gm2 -c $(OPTIONS)
M2L= gm2 -fonlylink -I. $(OPTIONS) $(LIBS)
all:m2pp
#----------------------------------------------------------------------------
m2pp: m2pp.o
$(M2L) m2pp.mod $(LIBS) -o m2pp
m2pp.o: m2pp.mod
$(M2C) m2pp.mod
m2pp.mod:
clean: force
$(RM) m2pp.o \
m2pp_m2.cpp m2pp_m2.s
force:
#----------------------------------------------------------------------------