Commit | Line | Data |
---|---|---|
252b5132 | 1 | # |
fce11aaa | 2 | # Makefile for libiberty under openVMS |
252b5132 RH |
3 | # |
4 | # For use with gnu-make for vms | |
5 | # | |
6 | # Created by Klaus K"ampf, kkaempf@progis.de | |
7 | # | |
8 | # | |
9 | ||
56ae5eb9 TG |
10 | OBJS=getopt.obj,obstack.obj,xexit.obj,xmalloc.obj,hex.obj,\ |
11 | getopt1.obj,cplus-dem.obj,cp-demangle.obj,cp-demint.obj,\ | |
083faca9 | 12 | asprintf.obj vasprintf.obj,mkstemps.obj,filename_cmp.obj,\ |
56ae5eb9 TG |
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,\ | |
bc771b3b TG |
16 | lrealpath.obj,make-temp-file.obj,stpcpy.obj,unlink-if-ordinary.obj,\ |
17 | dwarfnames.obj | |
252b5132 RH |
18 | |
19 | ifeq ($(CC),gcc) | |
20 | CFLAGS=/include=([],[-.include]) | |
21 | else | |
22 | # assume dec c | |
56ae5eb9 TG |
23 | OPT=/noopt/debug/warnings=disable=(missingreturn) |
24 | CFLAGS=$(OPT)/include=([],[-.include])/name=(as_is,shortened)\ | |
25 | /define=(HAVE_CONFIG_H=1)\ | |
26 | /prefix=(all,except=("getopt","optarg","optopt","optind","opterr")) | |
252b5132 RH |
27 | endif |
28 | ||
fce11aaa | 29 | libiberty.olb: $(OBJS) |
252b5132 RH |
30 | purge |
31 | lib/create libiberty *.obj | |
32 | ||
252b5132 RH |
33 | clean: |
34 | $$ purge | |
252b5132 RH |
35 | $(RM) *.obj; |
36 | $(RM) libiberty.olb; |