bfd/
[binutils.git] / libiberty / makefile.vms
blob2f45f69a2aeb718a5a53f618aa34b11288bd083f
2 # Makefile for libiberty under openVMS/Alpha
4 # For use with gnu-make for vms
6 # Created by Klaus K"ampf, kkaempf@progis.de
10 OBJS=getopt.obj,obstack.obj,xexit.obj,xmalloc.obj,hex.obj,\
11     getopt1.obj,cplus-dem.obj,cp-demangle.obj,cp-demint.obj,\
12     asprintf.obj vasprintf.obj,mkstemps.obj,\
13     concat.obj,getruntime.obj,getpagesize.obj,getpwd.obj,xstrerror.obj,\
14     xmemdup.obj,xstrdup.obj,xatexit.obj,choose-temp.obj,fnmatch.obj,\
15     objalloc.obj,safe-ctype.obj,hashtab.obj,lbasename.obj,argv.obj,\
16     lrealpath.obj,make-temp-file.obj,unlink-if-ordinary.obj
18 ifeq ($(CC),gcc)
19 CFLAGS=/include=([],[-.include])
20 else
21 # assume dec c
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,except=("getopt","optarg","optopt","optind","opterr"))
26 endif
28 libiberty.olb: config.h $(OBJS)
29         purge
30         lib/create libiberty *.obj
32 config.h: config.h-vms
33         $(CP) $< $@
35 clean:
36         $$ purge
37         $(RM) config.h;
38         $(RM) *.obj;
39         $(RM) libiberty.olb;