What does the "ln" mean in the makefile of vim's src

What does the "ln" mean in the makefile of vim's src

Post by apor on Sun May 24, 2009 11:40 pm
([msg=24324]see What does the "ln" mean in the makefile of vim's src[/msg])

In linux "ln" is used to link files.
but here in vim's src, they use "ln" with "+q -m -o " options ,and you know in linux ,ln doesn't have these options.
So is there anyone who can help me?
And also i don't understand the many options in CFLAGS .What shall i do about this now ?
Thanks everyone !
apor
New User
New User
 
Posts: 4
Joined: Sun May 24, 2009 11:31 pm
Blog: View Blog (0)


Re: What does the "ln" mean in the makefile of vim's src

Post by mischief on Mon May 25, 2009 9:21 am
([msg=24364]see Re: What does the "ln" mean in the makefile of vim's src[/msg])

you can check what program make is using for it's variables (if it is using variables) with -V flag i think.

like make -V CC, to check the compiler if it is using the $(CC) macro to compile. then check the manpage for whatever programs it is using.
The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
--Buddha
User avatar
mischief
Poster
Poster
 
Posts: 355
Joined: Wed Jan 07, 2009 4:16 pm
Blog: View Blog (0)


Re: What does the "ln" mean in the makefile of vim's src

Post by apor on Sat May 30, 2009 8:58 am
([msg=24609]see Re: What does the "ln" mean in the makefile of vim's src[/msg])

Thanks, but i have checked the manpage of "ln" in linux ,but it doesn't have such options like "+q -m -o"at all .
apor
New User
New User
 
Posts: 4
Joined: Sun May 24, 2009 11:31 pm
Blog: View Blog (0)


Re: What does the "ln" mean in the makefile of vim's src

Post by BhaaL on Sun May 31, 2009 5:19 am
([msg=24662]see Re: What does the "ln" mean in the makefile of vim's src[/msg])

Are you sure they use ln (the utility to create soft/hardlinks) in there? And not just a command/macro/variable/whatever thats called ln?
Mind pasting the part of the Makefile you're talking about?
BhaaL
Poster
Poster
 
Posts: 270
Joined: Sun Apr 13, 2008 11:16 am
Blog: View Blog (0)


Re: What does the "ln" mean in the makefile of vim's src

Post by apor on Wed Jun 10, 2009 9:56 am
([msg=25191]see Re: What does the "ln" mean in the makefile of vim's src[/msg])

# Makefile for VIM, using Manx C 5.0d
#

INCL = vim.syms
CFLAGS = -safmprs -ps -bs -qf -DAMIGA -DWILD_CARDS
LIBS = -lc16

OBJ = alloc.o amiga.o buffers.o charset.o cmdline.o cmdsearch.o edit.o \
fileio.o help.o linefunc.o main.o mark.o message.o misccmds.o \
normal.o ops.o param.o quickfix.o regexp.o regsub.o screen.o \
script.o search.o storage.o undo.o version.o

/Vim: $(OBJ)
cc $(CFLAGS) version.c
ln +q -m -t -o /Vim $(OBJ) $(LIBS)

debug: $(OBJ)
cc $(CFLAGS) version.c
ln +q -m -g -o /Vim $(OBJ) $(LIBS)

tags: $(OBJ)
csh -c ctags *.c *.h

$(INCL) : vim.h globals.h param.h keymap.h macros.h ascii.h term.h amiga.h
cc $(CFLAGS) -ho$(INCL) vim.h

alloc.o: alloc.c $(INCL)
cc $(CFLAGS) -hi$(INCL) alloc.c

amiga.o: amiga.c $(INCL) amiga.h
cc $(CFLAGS) -hi$(INCL) amiga.c

buffers.o: buffers.c $(INCL)
cc $(CFLAGS) -hi$(INCL) buffers.c

charset.o: charset.c $(INCL)
cc $(CFLAGS) -hi$(INCL) charset.c

cmdline.o: cmdline.c $(INCL) cmdtab.h
cc $(CFLAGS) -hi$(INCL) cmdline.c

cmdsearch.o: cmdsearch.c $(INCL)
cc $(CFLAGS) -hi$(INCL) cmdsearch.c

edit.o: edit.c $(INCL)
cc $(CFLAGS) -hi$(INCL) edit.c

fileio.o: fileio.c $(INCL)
cc $(CFLAGS) -hi$(INCL) fileio.c

help.o: help.c $(INCL)
cc $(CFLAGS) -hi$(INCL) help.c

linefunc.o: linefunc.c $(INCL)
cc $(CFLAGS) -hi$(INCL) linefunc.c

main.o: main.c $(INCL)
cc $(CFLAGS) main.c

mark.o: mark.c $(INCL)
cc $(CFLAGS) -hi$(INCL) mark.c

message.o: message.c $(INCL)
cc $(CFLAGS) -hi$(INCL) message.c

misccmds.o: misccmds.c $(INCL)
cc $(CFLAGS) -hi$(INCL) misccmds.c

normal.o: normal.c $(INCL) ops.h
cc $(CFLAGS) -hi$(INCL) normal.c

ops.o: ops.c $(INCL) ops.h
cc $(CFLAGS) -hi$(INCL) ops.c

param.o: param.c $(INCL)
cc $(CFLAGS) -hi$(INCL) param.c

quickfix.o: quickfix.c $(INCL)
cc $(CFLAGS) -hi$(INCL) quickfix.c

regexp.o: regexp.c $(INCL)
cc $(CFLAGS) -hi$(INCL) regexp.c

regsub.o: regsub.c $(INCL)
cc $(CFLAGS) -hi$(INCL) regsub.c

screen.o: screen.c $(INCL)
cc $(CFLAGS) -hi$(INCL) screen.c

script.o: script.c $(INCL)
cc $(CFLAGS) -hi$(INCL) script.c

search.o: search.c $(INCL)
cc $(CFLAGS) -hi$(INCL) search.c

storage.o: storage.c $(INCL)
cc $(CFLAGS) -hi$(INCL) storage.c

undo.o: undo.c $(INCL)
cc $(CFLAGS) -hi$(INCL) undo.c

cmdtab.h: cmdtab.tab makecmdtab
makecmdtab <cmdtab.tab >cmdtab.h

makecmdtab: makecmdtab.o
ln +q -o makecmdtab makecmdtab.o -lc16
apor
New User
New User
 
Posts: 4
Joined: Sun May 24, 2009 11:31 pm
Blog: View Blog (0)


Re: What does the "ln" mean in the makefile of vim's src

Post by tgoe on Wed Jun 10, 2009 10:49 am
([msg=25192]see Re: What does the "ln" mean in the makefile of vim's src[/msg])

I'm guessing that this isn't a makefile for Linux. ln must be the linker for Manx C and just happens to have the same name as the posix utility. It's also weird that the last line doesn't make use of LIBS.
User avatar
tgoe
Contributor
Contributor
 
Posts: 640
Joined: Sun Sep 28, 2008 2:33 pm
Location: q3dm7
Blog: View Blog (0)


Re: What does the "ln" mean in the makefile of vim's src

Post by apor on Fri Jun 12, 2009 9:19 am
([msg=25276]see Re: What does the "ln" mean in the makefile of vim's src[/msg])

tgoe wrote:I'm guessing that this isn't a makefile for Linux. ln must be the linker for Manx C and just happens to have the same name as the posix utility. It's also weird that the last line doesn't make use of LIBS.

Yeah,it's weird.
By the way ,thanks to everyone who reply to me.
apor
New User
New User
 
Posts: 4
Joined: Sun May 24, 2009 11:31 pm
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests