| 1 |
$! |
| 2 |
$! This file configures the libiberty library for use with openVMS. |
| 3 |
$! |
| 4 |
$! We do not use the configure script, since we do not have /bin/sh |
| 5 |
$! to execute it. |
| 6 |
$! |
| 7 |
$! Written by Tristan Gingold ([email protected]) |
| 8 |
$! |
| 9 |
$! |
| 10 |
$! |
| 11 |
$ copy config.h-vms config.h |
| 12 |
$! |
| 13 |
$ write sys$output "Generate libiberty build.com" |
| 14 |
$! |
| 15 |
$ create build.com |
| 16 |
$DECK |
| 17 |
$ FILES="getopt,obstack,xexit,xmalloc,hex,getopt1,cplus-dem,cp-demangle,"+- |
| 18 |
"cp-demint,asprintf,vasprintf,mkstemps,concat,getruntime,getpagesize,"+- |
| 19 |
"getpwd,xstrerror,xmemdup,xstrdup,xatexit,choose-temp,fnmatch,objalloc,"+- |
| 20 |
"safe-ctype,hashtab,lbasename,ldirname,argv,lrealpath,make-temp-file,"+- |
| 21 |
"stpcpy,unlink-if-ordinary" |
| 22 |
$ OPT="/noopt/debug/warnings=disable=(missingreturn)" |
| 23 |
$ CFLAGS=OPT + "/include=([],[-.include])/name=(as_is,shortened)" +- |
| 24 |
"/define=(HAVE_CONFIG_H=1)" +- |
| 25 |
"/prefix=(all,exc=(""getopt"",""optarg"",""optopt"",""optind"",""opterr""))" |
| 26 |
$ write sys$output "CFLAGS=",CFLAGS |
| 27 |
$ NUM = 0 |
| 28 |
$ LOOP: |
| 29 |
$ F = F$ELEMENT(NUM,",",FILES) |
| 30 |
$ IF F.EQS."," THEN GOTO END |
| 31 |
$ write sys$output "Compiling ", F, ".c" |
| 32 |
$ cc 'CFLAGS 'F.c |
| 33 |
$ NUM = NUM + 1 |
| 34 |
$ GOTO LOOP |
| 35 |
$ END: |
| 36 |
$ purge |
| 37 |
$ lib/create libiberty 'FILES |
| 38 |
$EOD |