126 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			126 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
. ../../config/system
 | 
						|
. ../../config/site
 | 
						|
 | 
						|
echo Building Makefile.local...
 | 
						|
cat <<EOT >Makefile.local
 | 
						|
# This Makefile was produced by running ./build in this directory.
 | 
						|
 | 
						|
SHELL=/bin/sh
 | 
						|
 | 
						|
CC= ${cc-cc}
 | 
						|
CFLAGS= $cflags $obj_cflags
 | 
						|
LINTFLAGS= $lintflags
 | 
						|
 | 
						|
INC=	../../include
 | 
						|
 | 
						|
H=	\$(INC)/compat.h\\
 | 
						|
	\$(INC)/config.h\\
 | 
						|
	\$(INC)/cstring.h\\
 | 
						|
	\$(INC)/exception.h\\
 | 
						|
	\$(INC)/extern.h\\
 | 
						|
	\$(INC)/funcproto.h\\
 | 
						|
	\$(INC)/gc.h\\
 | 
						|
	\$(INC)/misc.h\\
 | 
						|
	\$(INC)/object.h\\
 | 
						|
	\$(INC)/param.h\\
 | 
						|
	\$(INC)/stkmem.h\\
 | 
						|
	\$(INC)/type.h\\
 | 
						|
	../xlib/xlib.h\\
 | 
						|
	xt.h
 | 
						|
 | 
						|
C=	accelerator.c\\
 | 
						|
	action.c\\
 | 
						|
	callback.c\\
 | 
						|
	class.c\\
 | 
						|
	classname.c\\
 | 
						|
	context.c\\
 | 
						|
	converter.c\\
 | 
						|
	error.c\\
 | 
						|
	function.c\\
 | 
						|
	identifier.c\\
 | 
						|
	init.c\\
 | 
						|
	objects.c\\
 | 
						|
	popup.c\\
 | 
						|
	resource.c\\
 | 
						|
	translation.c\\
 | 
						|
	widget.c
 | 
						|
 | 
						|
O=	accelerator.o\\
 | 
						|
	action.o\\
 | 
						|
	callback.o\\
 | 
						|
	class.o\\
 | 
						|
	classname.o\\
 | 
						|
	context.o\\
 | 
						|
	converter.o\\
 | 
						|
	error.o\\
 | 
						|
	function.o\\
 | 
						|
	identifier.o\\
 | 
						|
	init.o\\
 | 
						|
	objects.o\\
 | 
						|
	popup.o\\
 | 
						|
	resource.o\\
 | 
						|
	translation.o\\
 | 
						|
	widget.o
 | 
						|
 | 
						|
all: \$(O) xt.so
 | 
						|
 | 
						|
.c.o:
 | 
						|
	\$(CC) \$(CFLAGS) -I\$(INC) -I../xlib $x11_incl -c \$<
 | 
						|
 | 
						|
accelerator.o:	\$(H) accelerator.c
 | 
						|
action.o:	\$(H) action.c
 | 
						|
callback.o:	\$(H) callback.c
 | 
						|
class.o:	\$(H) class.c
 | 
						|
classname.o:	\$(H) classname.c
 | 
						|
context.o:	\$(H) context.c
 | 
						|
converter.o:	\$(H) converter.c
 | 
						|
error.o:	\$(H) error.c
 | 
						|
function.o:	\$(H) function.c
 | 
						|
identifier.o:	\$(H) identifier.c
 | 
						|
init.o:		\$(H) init.c
 | 
						|
objects.o:	\$(H) objects.c
 | 
						|
popup.o:	\$(H) popup.c
 | 
						|
resource.o:	\$(H) resource.c
 | 
						|
translation.o:	\$(H) translation.c
 | 
						|
widget.o:	\$(H) widget.c
 | 
						|
 | 
						|
xt.pre: \$(O) ../xlib/xlib.pre
 | 
						|
	../../scripts/makedl \$@ \$(O) ../xlib/*.o
 | 
						|
 | 
						|
xt.so: \$(O) ../xlib/xlib.so
 | 
						|
	gcc -shared -o \$@ \$(O) ../xlib/*.o $libxt -lc
 | 
						|
 | 
						|
install: xt.so
 | 
						|
	-@if [ ! -d $install_dir/lib ]; then \\
 | 
						|
	    echo mkdir $install_dir/lib; \\
 | 
						|
	    mkdir $install_dir/lib; \\
 | 
						|
	fi
 | 
						|
	-@if [ ! -d $install_dir/lib/elk ]; then \\
 | 
						|
	    echo mkdir $install_dir/lib/elk; \\
 | 
						|
	    mkdir $install_dir/lib/elk; \\
 | 
						|
	fi
 | 
						|
	cp xt.so $install_dir/lib/elk
 | 
						|
	-@if [ ! -d $install_dir/include ]; then \\
 | 
						|
	    echo mkdir $install_dir/include; \\
 | 
						|
	    mkdir $install_dir/include; \\
 | 
						|
	fi
 | 
						|
	-@if [ ! -d $install_dir/include/elk ]; then \\
 | 
						|
	    echo mkdir $install_dir/include/elk; \\
 | 
						|
	    mkdir $install_dir/include/elk; \\
 | 
						|
	fi
 | 
						|
	-@if [ ! -d $install_dir/include/elk/extensions ]; then \\
 | 
						|
	    echo mkdir $install_dir/include/elk/extensions; \\
 | 
						|
	    mkdir $install_dir/include/elk/extensions; \\
 | 
						|
	fi
 | 
						|
	cp xt.h $install_dir/include/elk/extensions
 | 
						|
 | 
						|
lint:
 | 
						|
	lint \$(LINTFLAGS) -I\$(INC) -I../xlib $x11_incl \$(C)
 | 
						|
 | 
						|
clean:
 | 
						|
	rm -f *.so *.o xt.pre core
 | 
						|
 | 
						|
distclean:
 | 
						|
	rm -f *.so *.o xt.pre core lint.out Makefile.local
 | 
						|
EOT
 |