hbase

heirloom base
git clone git://git.2f30.org/hbase
Log | Files | Refs | README

mkfile (1458B)


      1 BIN = grep
      2 OBJ = alloc.o grep.o grid.o plist.o rcomp.o sus.o ac.o
      3 LOCAL_CFLAGS = -DSU3
      4 INSTALL_BIN = grep
      5 INSTALL_MAN1 = grep.1 egrep.1 fgrep.1
      6 INSTALL_SYMLINK = \
      7 	grep /bin/egrep \
      8 	grep /bin/fgrep
      9 DEPS = libcommon
     10 
     11 <$mkbuild/mk.common
     12 
     13 grep: $OBJ
     14 
     15 config.h:Q:
     16 	echo '/*	Auto-generated by make. Do not edit!	*/' >config.h
     17 	echo -n "Checking for wchar.h... "
     18 	echo '#include	<wchar.h>' >___build$$$$.c
     19 	$CC $CFLAGS2 $CPPFLAGS $IWCHAR $ICOMMON $IUXRE $LARGEF -c ___build$$$$.c >/dev/null 2>&1
     20 	if test $? = 0 && test -f ___build$$$$.o
     21 	then	echo '#include	<wchar.h>' >>config.h
     22 	else	echo "not "
     23 	fi
     24 	rm -f ___build$$$$.o ___build$$$$.c
     25 	echo "found."
     26 	echo -n "Checking for wctype.h... "
     27 	echo '#include	<wctype.h>' >___build$$$$.c
     28 	$CC $CFLAGS2 $CPPFLAGS $IWCHAR $ICOMMON $IUXRE $LARGEF -c ___build$$$$.c >/dev/null 2>&1
     29 	if test $? = 0 && test -f ___build$$$$.o
     30 	then	echo '#include	<wctype.h>' >>config.h
     31 	else	echo "not "
     32 	fi
     33 	rm -f ___build$$$$.o ___build$$$$.c
     34 	echo "found."
     35 	echo -n "Checking for long long... "
     36 	echo 'long long foo;' >___build$$$$.c
     37 	$CC $CFLAGS2 $CPPFLAGS $IWCHAR $ICOMMON $IUXRE $LARGEF -c ___build$$$$.c >/dev/null 2>&1
     38 	if test $? = 0 && test -f ___build$$$$.o
     39 	then	echo '#define	LONGLONG' >>config.h
     40 	else	echo "not "
     41 	fi
     42 	rm -f ___build$$$$.o ___build$$$$.c
     43 	echo "found."
     44 
     45 grep.o: grep.h config.h alloc.h
     46 plist.o: grep.h config.h alloc.h
     47 sus.o: grep.h config.h alloc.h
     48 ac.o: alloc.h grep.h
     49 rcomp.o: grep.h config.h alloc.h