home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8707 / 62 / Makefile < prev    next >
Encoding:
Makefile  |  1990-07-13  |  2.9 KB  |  103 lines

  1. # Eunice finger makefile
  2.  
  3. CFLAGS= -O
  4. SRCS= finger.c getidle.c rmtinfo.c vmsperror.c
  5. OBJS= finger.o getidle.o rmtinfo.o vmsperror.o syssym.o
  6.  
  7. # Ignore vms_struct exit status, it's random.
  8. VMSSTRUCT= -/etc/vms/vms_struct
  9.  
  10. # Map can be in different places if running a cluster.
  11. #SYSMAP= /sys/sysexe/sys.map
  12. SYSMAP= /sys/syscommon/sysexe/sys.map
  13.  
  14. finger: ${OBJS}
  15.     ${CC} -noshare -notraceback finger.c -o finger ${OBJS}
  16.  
  17. lint:
  18.     lint -hbx ${COPTS} ${SRCS}
  19.  
  20. clean:
  21.     rm -f ${OBJS} syssym.s *.mar vms/*.h finger core
  22.  
  23. finger.o: finger.c vms/dvidef.h vms/jpidef.h vms/ssdef.h \
  24.         vms/statedef.h vms/tt2def.h vms/ttdef.h
  25.  
  26. getidle.o: getidle.c vms/dcdef.h vms/ddbdef.h vms/devdef.h \
  27.         vms/ssdef.h vms/ttyucbdef.h vms/ucbdef.h
  28.  
  29. rmtinfo.o: rmtinfo.c vms/nfbdef.h vms/ssdef.h vms/iodef.h
  30.  
  31. syssym.s:
  32.     egrep 'GL_ABSTIM|GL_DEVLIST|IPID_TO_EPID' ${SYSMAP} | \
  33.         tr A-Z a-z | awk -f syssym.awk >syssym.s
  34.  
  35. syssym.o: syssym.s
  36.     as -o syssym.o syssym.s
  37.  
  38. vms/dcdef.h:
  39.     vms library 'sys$$library:starlet.mlb /extra=($$dcdef) /out=dcdef.mar'
  40.     ${VMSSTRUCT} dcdef.mar >vms/dcdef.h
  41.     rm -f dcdef.mar
  42.  
  43. vms/ddbdef.h: ddbdef.i
  44.     vms library 'sys$$library:lib.mlb /extra=($$ddbdef) /out=ddbdef.mar'
  45.     ${VMSSTRUCT} -i ddbdef.i ddbdef.mar >vms/ddbdef.h
  46.     rm -f ddbdef.mar
  47.  
  48. vms/devdef.h:
  49.     vms library 'sys$$library:starlet.mlb /extra=($$devdef) /out=devdef.mar'
  50.     ${VMSSTRUCT} devdef.mar >vms/devdef.h
  51.     rm -f devdef.mar
  52.  
  53. vms/dvidef.h:
  54.     vms library 'sys$$library:starlet.mlb /extra=($$dvidef) /out=dvidef.mar'
  55.     ${VMSSTRUCT} dvidef.mar >vms/dvidef.h
  56.     rm -f dvidef.mar
  57.  
  58. vms/iodef.h:
  59.     vms library 'sys$$library:starlet.mlb /extra=($$iodef) /out=iodef.mar'
  60.     ${VMSSTRUCT} iodef.mar >vms/iodef.h
  61.     rm -f iodef.mar
  62.  
  63. vms/jpidef.h:
  64.     vms library 'sys$$library:starlet.mlb /extra=($$jpidef) /out=jpidef.mar'
  65.     ${VMSSTRUCT} jpidef.mar >vms/jpidef.h
  66.     rm -f jpidef.mar
  67.  
  68. vms/nfbdef.h:
  69.     vms library 'sys$$library:lib.mlb /extra=($$nfbdef) /out=nfbdef.mar'
  70.     ${VMSSTRUCT} nfbdef.mar >vms/nfbdef.h
  71.     rm -f nfbdef.mar
  72.  
  73. vms/ssdef.h:
  74.     vms library 'sys$$library:starlet.mlb /extra=($$ssdef) /out=ssdef.mar'
  75.     ${VMSSTRUCT} ssdef.mar >vms/ssdef.h
  76.     rm -f ssdef.mar
  77.  
  78. vms/statedef.h:
  79.     vms library 'sys$$library:lib.mlb /extra=($$statedef) /out=statedef.mar'
  80.     ${VMSSTRUCT} statedef.mar >vms/statedef.h
  81.     rm -f statedef.mar
  82.  
  83. vms/tt2def.h:
  84.     vms library 'sys$$library:starlet.mlb /extra=($$tt2def) /out=tt2def.mar'
  85.     ${VMSSTRUCT} tt2def.mar >vms/tt2def.h
  86.     rm -f tt2def.mar
  87.  
  88. vms/ttdef.h:
  89.     vms library 'sys$$library:starlet.mlb /extra=($$ttdef) /out=ttdef.mar'
  90.     ${VMSSTRUCT} ttdef.mar >vms/ttdef.h
  91.     rm -f ttdef.mar
  92.  
  93. vms/ttyucbdef.h:
  94.     vms library 'sys$$library:lib.mlb /extra=($$ttyucbdef) /out=ttyucbdef.mar'
  95.     egrep -v 'W_TT_DESIZE|W_RTT_SYSTYPE' ttyucbdef.mar >ttyucbdef.mar2
  96.     ${VMSSTRUCT} ttyucbdef.mar2 >vms/ttyucbdef.h
  97.     rm -f ttyucbdef.mar ttyucbdef.mar2
  98.  
  99. vms/ucbdef.h: ucbdef.i
  100.     vms library 'sys$$library:lib.mlb /extra=($$ucbdef) /out=ucbdef.mar'
  101.     ${VMSSTRUCT} -i ucbdef.i ucbdef.mar >vms/ucbdef.h
  102.     rm -f ucbdef.mar
  103.