7
|
1 #
|
|
2 # Makefile for Vim on MiNT vim:ts=8:sw=8:tw=78
|
|
3 #
|
|
4 # This is a wrapper around the Unix Makefile. It is configured to accompany
|
|
5 # the MiNT distribution of Vim.
|
|
6 #
|
|
7 # See "Makefile" for instructions how to run "make".
|
|
8 #
|
|
9 # BUT: Always run: "make -f Make_mint.mak config",
|
|
10 # and then: "make -f Make_mint.mak"!
|
|
11 # Otherwise the postprocessing won't get done.
|
|
12 #
|
|
13
|
|
14 ### This Makefile has been succesfully tested on these systems.
|
|
15 ### Check the (*) column for remarks, listed below.
|
|
16 ### Later code changes may cause small problems, otherwise Vim is supposed to
|
|
17 ### compile and run without problems.
|
|
18
|
|
19 #system: configurations: version (*) tested by:
|
|
20 #------------- ------------------------ ------- - ----------
|
|
21 #MiNT 1.12.5 gcc gcc-2.6.1 3.29 Jens Felderhoff
|
|
22 #MiNT 1.12.6 gcc gcc-2.6.1 -GUI 4.6b Jens Felderhoff
|
|
23 #MiNT 1.12.6 gcc gcc-2.6.1 -GUI 4.6 Jens Felderhoff
|
|
24
|
|
25 # set this to the pathname prefix of your symbol link editor, i.e. if it is
|
|
26 # /usr/local/bin/sym-ld set:
|
|
27 #
|
|
28 SYMLDPREFIX = /usr/local/bin/sym-
|
|
29 #SYMLDPREFIX = /gnu/bin/sym-
|
|
30
|
|
31 POSTPROCESS = fixstk 20k $(VIMTARGET)
|
|
32 DBGPOSTPROCESS = fixstk 20k $(DBGTARGET)
|
|
33 DBGLDFLAGS = -B$(SYMLDPREFIX)
|
|
34 DBGTARGET = $(VIMTARGET).sym
|
|
35
|
|
36
|
|
37 # Default target is making the executable and then do the post processing
|
|
38 all: $(VIMTARGET) $(TOOLS)
|
|
39 $(POSTPROCESS)
|
|
40
|
|
41 debug: $(DBGTARGET)
|
|
42 $(DBGPOSTPROCESS)
|
|
43
|
|
44 #################### include the Unix Makefile ###############
|
|
45
|
|
46 include Makefile
|
|
47
|
|
48
|
|
49 ### (M) MiNT with gcc 2.6.1 and gdb 3.5
|
|
50 CC = gcc -mint
|
|
51 CFLAGS = -g -O -Iproto
|
|
52
|
|
53 $(DBGTARGET): $(OBJ) version.c version.h
|
|
54 $(CC) -c $(ALL_CFLAGS) version.c
|
|
55 $(CC) $(LDFLAGS) $(DBGLDFLAGS) -o $(DBGTARGET) -g $(OBJ) \
|
|
56 version.o $(ALL_LIBS)
|