Migration to new build system.

* gph moved and checked
This commit is contained in:
Mateusz Hromada 2009-06-09 13:24:34 +02:00
parent 9e0afb505e
commit e4cec26b9f
6 changed files with 27 additions and 12 deletions

View File

@ -1,9 +0,0 @@
gph:
copy:
ifdef UTT_BIN_DIR
cp gph ${UTT_BIN_DIR}
endif
clean:

View File

@ -19,11 +19,14 @@ DEFAULT_GREP='/bin/grep'
DEFAULT_CUT='/usr/bin/cut' DEFAULT_CUT='/usr/bin/cut'
DEFAULT_SORT='/usr/bin/sort' DEFAULT_SORT='/usr/bin/sort'
DEFAULT_PR='/usr/bin/pr' DEFAULT_PR='/usr/bin/pr'
DEFAULT_CP='/bin/cp'
DEFAULT_CHMOD='/bin/chmod'
DEFAULT_CFLAGS='-g -O2 -Wall' DEFAULT_CFLAGS='-g -O2 -Wall'
DEFAULT_LDFLAGS='' DEFAULT_LDFLAGS=''
DEFAULT_LDLIBS='' DEFAULT_LDLIBS=''
DEFAULT_BFLAGS='' DEFAULT_BFLAGS=''
DEFAULT_FFLAGS=''
DEFAULT_DESTDIR= DEFAULT_DESTDIR=

View File

@ -22,11 +22,14 @@ if [ -z "$GREP" ]; then GREP=$DEFAULT_GREP;
if [ -z "$CUT" ]; then CUT=$DEFAULT_CUT; fi if [ -z "$CUT" ]; then CUT=$DEFAULT_CUT; fi
if [ -z "$SORT" ]; then SORT=$DEFAULT_SORT; fi if [ -z "$SORT" ]; then SORT=$DEFAULT_SORT; fi
if [ -z "$PR" ]; then PR=$DEFAULT_PR; fi if [ -z "$PR" ]; then PR=$DEFAULT_PR; fi
if [ -z "$CP" ]; then CP=$DEFAULT_CP; fi
if [ -z "$CHMOD" ]; then CHMOD=$DEFAULT_CHMOD; fi
if [ -z "$CFLAGS" ]; then CFLAGS=$DEFAULT_CFLAGS; fi if [ -z "$CFLAGS" ]; then CFLAGS=$DEFAULT_CFLAGS; fi
if [ -z "$LDFLAGS" ]; then LDFLAGS=$DEFAULT_LDFLAGS; fi if [ -z "$LDFLAGS" ]; then LDFLAGS=$DEFAULT_LDFLAGS; fi
if [ -z "$LDLIBS" ]; then LDLIBS=$DEFAULT_LDLIBS; fi if [ -z "$LDLIBS" ]; then LDLIBS=$DEFAULT_LDLIBS; fi
if [ -z "$BFLAGS" ]; then BFLAGS=$DEFAULT_BFLAGS; fi if [ -z "$BFLAGS" ]; then BFLAGS=$DEFAULT_BFLAGS; fi
if [ -z "$FFLAGS" ]; then FFLAGS=$DEFAULT_FFLAGS; fi
if [ -z "$DESTDIR" ]; then DESTDIR=$DEFAULT_DESTDIR; fi if [ -z "$DESTDIR" ]; then DESTDIR=$DEFAULT_DESTDIR; fi
@ -74,11 +77,14 @@ do
CUT=*) CUT="$value" ;; CUT=*) CUT="$value" ;;
SORT=*) SORT="$value" ;; SORT=*) SORT="$value" ;;
PR=*) PR="$value" ;; PR=*) PR="$value" ;;
CP=*) CP="$value" ;;
CHMOD=*) CHMOD="$value" ;;
CFLAGS=*) CFLAGS="$value" ;; CFLAGS=*) CFLAGS="$value" ;;
LDFLAGS=*) LDFLAGS="$value" ;; LDFLAGS=*) LDFLAGS="$value" ;;
LDLIBS=*) LDLIBS="$value" ;; LDLIBS=*) LDLIBS="$value" ;;
BFLAGS=*) BFLAGS="$value" ;; BFLAGS=*) BFLAGS="$value" ;;
FFLAGS=*) FFLAGS="$value" ;;
esac esac
done done
@ -127,12 +133,15 @@ Some influential environment variables:
CUT cut command CUT cut command
SORT sort command SORT sort command
PR pr command PR pr command
CP cp command
CHMOD chmod command
CFLAGS C compiler flags CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have LDFLAGS linker flags, e.g. -L<lib dir> if you have
libraries in a nonstandard directory <lib dir> libraries in a nonstandard directory <lib dir>
LDLIBS libraries to pass to the linker, e.g. -l<library> LDLIBS libraries to pass to the linker, e.g. -l<library>
BFLAGS Bison compiler flags BFLAGS Bison compiler flags
FFLAGS Flex compiler flags
Use these variables to override default values. Use these variables to override default values.

View File

@ -16,11 +16,14 @@ GREP = $GREP
CUT = $CUT CUT = $CUT
SORT = $SORT SORT = $SORT
PR = $PR PR = $PR
CP = $CP
CHMOD = $CHMOD
CFLAGS = $CFLAGS CFLAGS = $CFLAGS
LDFLAGS = $LDFLAGS LDFLAGS = $LDFLAGS
LDLIBS = $LDLIBS LDLIBS = $LDLIBS
BFLAGS = $BFLAGS BFLAGS = $BFLAGS
FFLAGS = $FFLAGS
DESTDIR = $DESTDIR DESTDIR = $DESTDIR
@ -42,7 +45,7 @@ ALL_FFLAGS = -t \$(FFLAGS)
VPATH = ./src VPATH = ./src
PROGRAMS = tok sen fla PROGRAMS = tok sen fla gph
TOK_OBJ_FILES = tok.o tok_cmdline.o TOK_OBJ_FILES = tok.o tok_cmdline.o
TOK_FLEX_FILES = tok.l TOK_FLEX_FILES = tok.l
@ -54,6 +57,8 @@ SEN_FLEX_FILES = sen.l
FLA_OBJ_FILES = fla.o FLA_OBJ_FILES = fla.o
GPH_PERL_FILES = gph.pl
CONFIG_FILES = src/config.h Makefile CONFIG_FILES = src/config.h Makefile
.SUFFIXES: .SUFFIXES:
@ -106,14 +111,18 @@ uninstall:
\$(FLEX) -t \$< > \$@ \$(FLEX) -t \$< > \$@
%.c: %.ggo %.c: %.ggo
gengetopt --input $< --file-name \$(basename \$@) --conf-parser gengetopt --input \$< --file-name \$(basename \$@) --conf-parser
%.h: %.ggo %.h: %.ggo
gengetopt --input $< --file-name \$(basename \$@) --conf-parser gengetopt --input \$< --file-name \$(basename \$@) --conf-parser
%: %.o %: %.o
\$(CC) \$? -o \$@ \$(ALL_LDFLAGS) \$(ALL_CFLAGS) \$(ALL_LDLIBS) \$(CC) \$? -o \$@ \$(ALL_LDFLAGS) \$(ALL_CFLAGS) \$(ALL_LDLIBS)
%: %.pl
\$(CP) \$< \$@
\$(CHMOD) a+x \$@
tok: \$(TOK_OBJ_FILES) tok: \$(TOK_OBJ_FILES)
EOF EOF

View File

@ -37,10 +37,13 @@ Configuration summary
CUT : $CUT CUT : $CUT
SORT : $SORT SORT : $SORT
PR : $PR PR : $PR
CP : $CP
CHMOD : $CHMOD
CFLAGS : $CFLAGS CFLAGS : $CFLAGS
LDFLAGS : $LDFLAGS LDFLAGS : $LDFLAGS
LDLIBS : $LDLIBS LDLIBS : $LDLIBS
BFLAGS : $BFLAGS BFLAGS : $BFLAGS
FFLAGS : $FFLAGS
SUMMARY_END SUMMARY_END

0
app/src/gph/gph → src/gph.pl Executable file → Normal file
View File