* Link objects with gcc, not ld.
git-svn-id: svn://svn.zoy.org/elk/trunk@13 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
		
							parent
							
								
									d0dd62cf9a
								
							
						
					
					
						commit
						074467d7f1
					
				| 
						 | 
				
			
			@ -82,34 +82,34 @@ struct.o:	\$(H) struct.c
 | 
			
		|||
gdbm.o:		\$(H) gdbm.c
 | 
			
		||||
 | 
			
		||||
bitstring.so:	bitstring.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
debug.so:	debug.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
elk-eval.so:	elk-eval.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
hack.so:	hack.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
monitor.so:	monitor.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
newhandler.so:	newhandler.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
record.so:	record.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
regexp.so:	regexp.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
struct.so:	struct.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lc
 | 
			
		||||
 | 
			
		||||
gdbm.so:	gdbm.o
 | 
			
		||||
	ld -shared -o \$@ \$< -lgdbm -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< -lgdbm -lc
 | 
			
		||||
 | 
			
		||||
install: \$(SO)
 | 
			
		||||
	-@if [ ! -d $install_dir/lib ]; then \\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -78,7 +78,7 @@ unix.pre: \$(O)
 | 
			
		|||
	../../scripts/makedl \$@ \$(O)
 | 
			
		||||
 | 
			
		||||
unix.so: \$(O)
 | 
			
		||||
	ld -shared -o \$@ \$(O) -lc
 | 
			
		||||
	gcc -shared -o \$@ \$(O) -lc
 | 
			
		||||
 | 
			
		||||
install: unix.so
 | 
			
		||||
	-@if [ ! -d $install_dir/lib ]; then \\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -120,73 +120,73 @@ tree.o:		\$(H) tree.d
 | 
			
		|||
viewport.o:	\$(H) viewport.d
 | 
			
		||||
 | 
			
		||||
ascii.so:	ascii.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
box.so:		box.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
command.so:	command.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
dialog.so:	dialog.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
form.so:	form.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
grip.so:	grip.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
label.so:	label.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
list.so:	list.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
menubutton.so:	menubutton.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
paned.so:	paned.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
panner.so:	panner.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
porthole.so:	porthole.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
repeater.so:	repeater.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
scrollbar.so:	scrollbar.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
shell.so:	shell.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
simplemenu.so:	simplemenu.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
sme.so:		sme.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
smebsb.so:	smebsb.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
smeline.so:	smeline.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
stripchart.so:	stripchart.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
toggle.so:	toggle.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
tree.so:	tree.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
viewport.so:	viewport.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxaw -lc
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
install: \$(SO)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -108,7 +108,7 @@ xlib.pre: \$(O)
 | 
			
		|||
	../../scripts/makedl \$@ \$(O)
 | 
			
		||||
 | 
			
		||||
xlib.so: \$(O)
 | 
			
		||||
	ld -shared -o \$@ \$(O) $libxlib -lc
 | 
			
		||||
	gcc -shared -o \$@ \$(O) $libxlib -lc
 | 
			
		||||
 | 
			
		||||
install: xlib.so
 | 
			
		||||
	-@if [ ! -d $install_dir/lib ]; then \\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										50
									
								
								lib/xm/build
								
								
								
								
							
							
						
						
									
										50
									
								
								lib/xm/build
								
								
								
								
							| 
						 | 
				
			
			@ -128,79 +128,79 @@ text.o:			\$(H) text.d
 | 
			
		|||
toggle-btn.o:		\$(H) toggle-btn.d
 | 
			
		||||
 | 
			
		||||
arrow-button.so:	arrow-button.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
bulletin-brd.so:	bulletin-brd.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
cascade-btn.so:		cascade-btn.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
command.so:		command.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
drawing-area.so:	drawing-area.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
drawn-button.so:	drawn-button.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
file-selectn.so:	file-selectn.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
form.so:		form.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
frame.so:		frame.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
label.so:		label.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
list.so:		list.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
main-window.so:		main-window.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
message-box.so:		message-box.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
paned-window.so:	paned-window.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
push-button.so:		push-button.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
row-column.so:		row-column.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
scale.so:		scale.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
scroll-bar.so:		scroll-bar.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
scrolled-win.so:	scrolled-win.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
selectn-box.so:		selectn-box.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
separator.so:		separator.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
shell.so:		shell.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
support.so:		support.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
text.so:		text.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
toggle-btn.so:		toggle-btn.o
 | 
			
		||||
	ld -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$< $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
install: \$(SO)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@ O=	\$(XTDIR)/accelerator.o\\
 | 
			
		|||
	@echo ""
 | 
			
		||||
 | 
			
		||||
xt-motif.so: \$(O) ../../xlib/xlib.so
 | 
			
		||||
	ld -shared -o \$@ \$(O) ../../xlib/*.o $force_load_xm $libxmotif -lc
 | 
			
		||||
	gcc -shared -o \$@ \$(O) ../../xlib/*.o $force_load_xm $libxmotif -lc
 | 
			
		||||
 | 
			
		||||
xt-motif.pre: \$(O) ../../xlib/xlib.pre
 | 
			
		||||
	../../../scripts/makedl \$@ \$(O) ../../xlib/*.o $motif_link_libs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -88,7 +88,7 @@ xt.pre: \$(O) ../xlib/xlib.pre
 | 
			
		|||
	../../scripts/makedl \$@ \$(O) ../xlib/*.o
 | 
			
		||||
 | 
			
		||||
xt.so: \$(O) ../xlib/xlib.so
 | 
			
		||||
	ld -shared -o \$@ \$(O) ../xlib/*.o $libxt -lc
 | 
			
		||||
	gcc -shared -o \$@ \$(O) ../xlib/*.o $libxt -lc
 | 
			
		||||
 | 
			
		||||
install: xt.so
 | 
			
		||||
	-@if [ ! -d $install_dir/lib ]; then \\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue