Home | History | Annotate | Download | only in vms
      1 # Bare bones description file (Makefile) for OpenVMS
      2 
      3 PACKAGE = expat
      4 VERSION = 1.95.8
      5 EXPAT_MAJOR_VERSION=1
      6 EXPAT_MINOR_VERSION=95
      7 EXPAT_EDIT=8
      8 
      9 O = .obj
     10 OLB = .olb
     11  
     12 LIBRARY = expat$(OLB)
     13 LIBDIR = [.lib]
     14 SOURCES = $(LIBDIR)xmlparse.c $(LIBDIR)xmltok.c $(LIBDIR)xmlrole.c
     15 OBJECTS = xmlparse$(O) xmltok$(O) xmlrole$(O)
     16  
     17 TEMPLATES = xmltok_impl.c xmltok_ns.c
     18 APIHEADER = $(LIBDIR)expat.h
     19 HEADERS = $(LIBDIR)ascii.h $(LIBDIR)iasciitab.h $(LIBDIR)utf8tab.h $(LIBDIR)xmltok.h \
     20 	$(LIBDIR)asciitab.h $(LIBDIR)latin1tab.h \
     21 	$(LIBDIR)nametab.h $(LIBDIR)xmldef.h $(LIBDIR)xmlrole.h $(LIBDIR)xmltok_impl.h
     22  
     23 CONFIG_HEADER = expat_config.h
     24 INCLUDES = /INCLUDE=([],[.lib])
     25 DEFS = /DEFINE=(PACKAGE="""$(PACKAGE)""",VERSION="""$(PACKAGE)_$(VERSION)""",HAVE_EXPAT_CONFIG_H)
     26 LIBREVISION = 0
     27 LIBCURRENT  = 1
     28 LIBAGE      = 0
     29 # 
     30 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
     31 # 
     32 # DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS) 
     33 # 
     34 # TAR = gtar
     35 # GZIP_ENV = --best
     36 # 
     37 .FIRST :
     38        IF F$SEARCH("$(LIBRARY)") .EQS. "" THEN $(LIBR) /CREATE /OBJECT $(LIBRARY)
     39 
     40 all : $(LIBRARY)
     41         @ write sys$output "All made."
     42  
     43 .SUFFIXES : 
     44 .SUFFIXES : $(OLB) $(O) .C .H  
     45  
     46 .c$(O) :
     47        $(COMPILE) $(MMS$SOURCE)
     48  
     49 $(O)$(OLB) :
     50         @ IF F$SEARCH("$(MMS$TARGET)") .EQS. "" -
     51                 THEN LIBRARY/CREATE/LOG $(MMS$TARGET)
     52         @ LIBRARY /REPLACE /LOG $(MMS$TARGET) $(MMS$SOURCE)
     53  
     54 clean :
     55        DELETE $(LIBRARY);*,*$(O);*
     56  
     57 $(LIBRARY) : $(LIBRARY)( $(OBJECTS) ) 
     58        $(LIBR) /COMPRESS $(MMS$TARGET)
     59 
     60 $(CONFIG_HEADER) : [.vms]expat_config.h
     61         COPY/LOG $(MMS$SOURCE) $(MMS$TARGET)
     62 
     63 xmlparse$(O) : $(LIBDIR)xmlparse.c $(LIBDIR)expat.h $(LIBDIR)xmlrole.h $(LIBDIR)xmltok.h $(CONFIG_HEADER)
     64  
     65 xmlrole$(O) : $(LIBDIR)xmlrole.c $(LIBDIR)ascii.h $(LIBDIR)xmlrole.h $(CONFIG_HEADER)
     66  
     67 xmltok$(O) : $(LIBDIR)xmltok.c $(LIBDIR)xmltok_impl.c $(LIBDIR)xmltok_ns.c \
     68         $(LIBDIR)ascii.h $(LIBDIR)asciitab.h $(LIBDIR)iasciitab.h $(LIBDIR)latin1tab.h \
     69 	$(LIBDIR)nametab.h $(LIBDIR)utf8tab.h $(LIBDIR)xmltok.h $(LIBDIR)xmltok_impl.h $(CONFIG_HEADER)
     70 
     71