blob: 97a2e4b4d13996a20624c9c6a633adb8fd1f62b0 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#
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
Bram Moolenaara7241f52008-06-24 20:39:31 +000014### This Makefile has been successfully tested on these systems.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015### 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#
28SYMLDPREFIX = /usr/local/bin/sym-
29#SYMLDPREFIX = /gnu/bin/sym-
30
31POSTPROCESS = fixstk 20k $(VIMTARGET)
32DBGPOSTPROCESS = fixstk 20k $(DBGTARGET)
33DBGLDFLAGS = -B$(SYMLDPREFIX)
34DBGTARGET = $(VIMTARGET).sym
35
36
37# Default target is making the executable and then do the post processing
38all: $(VIMTARGET) $(TOOLS)
39 $(POSTPROCESS)
40
41debug: $(DBGTARGET)
42 $(DBGPOSTPROCESS)
43
44#################### include the Unix Makefile ###############
45
46include Makefile
47
48
49### (M) MiNT with gcc 2.6.1 and gdb 3.5
50CC = gcc -mint
51CFLAGS = -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)