"Fossies" - the Fresh Open Source Software Archive

Member "c_count-7.20/descrip.mms" (21 May 1995, 2606 Bytes) of package /linux/privat/c_count-7.20.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # $Id: descrip.mms,v 7.3 1995/05/21 23:05:07 tom Exp $
    2 #
    3 # VMS makefile for C_COUNT.  Requires "MMS"
    4 
    5 TARGET = c_count.exe
    6 
    7 LINKFLAGS = /MAP=$(MMS$TARGET_NAME)/CROSS_REFERENCE/EXEC=$(MMS$TARGET_NAME).EXE
    8 
    9 INCS = []
   10 
   11 SRC =	c_count.c \
   12 	getopt.c \
   13 	wildcard.c
   14 
   15 OBJ =	c_count.obj,\
   16 	getopt.obj,\
   17 	wildcard.obj
   18 
   19 all :
   20         @ decc = f$search("SYS$SYSTEM:DECC$COMPILER.EXE").nes.""
   21         @ axp = f$getsyi("HW_MODEL").ge.1024
   22         @ macro = ""
   23         @ if axp.or.decc then macro = "/MACRO=("
   24         @ if decc then macro = macro + "__DECC__=1,"
   25         @ if axp then macro = macro + "__ALPHA__=1,"
   26         @ if macro.nes."" then macro = f$extract(0,f$length(macro)-1,macro)+ ")"
   27         $(MMS)$(MMSQUALIFIERS)'macro' $(TARGET)
   28 
   29 .IFDEF __ALPHA__
   30 OPTFILE =
   31 OPTIONS =
   32 .ELSE
   33 .IFDEF __DECC__
   34 .ELSE
   35 .ENDIF
   36 OPTFILE = ,vmsshare.opt
   37 OPTIONS = $(OPTFILE)/OPTIONS
   38 .ENDIF
   39 
   40 # install to DESTDIR1 if it's writable, else DESTDIR2
   41 install :
   42 	@ WRITE SYS$ERROR "** no rule for $@"
   43 	
   44 clean :
   45 	@- if f$search("*.obj") .nes. "" then delete *.obj;*
   46 	@- if f$search("*.bak") .nes. "" then delete *.bak;*
   47 	@- if f$search("*.lis") .nes. "" then delete *.lis;*
   48 	@- if f$search("*.log") .nes. "" then delete *.log;*
   49 	@- if f$search("*.map") .nes. "" then delete *.map;*
   50 
   51 distclean : clean
   52 	@- if f$search("*.exe") .nes. "" then delete *.exe;*
   53 
   54 check :
   55 	set default [.testing]
   56 	@run_test.dcl
   57 	set default [-]	
   58 
   59 $(OBJ) : system.h
   60 
   61 .first :
   62 	@ define/nolog SYS SYS$LIBRARY		! fix includes to <sys/...>
   63 
   64 .last :
   65 	@- if f$search("*.dia") .nes. "" then delete *.dia;*
   66 	@- if f$search("*.lis") .nes. "" then purge *.lis
   67 	@- if f$search("*.obj") .nes. "" then purge *.obj
   68 	@- if f$search("*.map") .nes. "" then purge *.map
   69 	@- if f$search("*.exe") .nes. "" then purge *.exe
   70 	@- if f$search("*.log") .nes. "" then purge *.log
   71 
   72 # used /G_FLOAT with vaxcrtlg/share in vms_link.opt
   73 # can also use /Debug /Listing, /Show=All
   74 CFLAGS =-
   75 	/Diagnostics /Object=$@ /Include=($(INCS))
   76 
   77 .C.OBJ :
   78 	$(CC) $(CFLAGS) $(MMS$SOURCE)
   79 	@- delete $(MMS$TARGET_NAME).dia;*
   80 
   81 $(TARGET) : $(OBJ), descrip.mms $(OPTFILE)
   82 	$(LINK) $(LINKFLAGS) $(OBJ) $(OPTIONS)
   83 
   84 # Runs C_COUNT from the current directory (used for testing)
   85 c_count.com :
   86 	@- if "''f$search("$@")'" .nes. "" then delete $@;*
   87 	@- copy nl: $@
   88 	@ open/append  test_script $@
   89 	@ write test_script "$ c_count :== $""sys$disk:''f$directory()'c_count.exe""
   90 	@ write test_script "$ define/user_mode sys$input  sys$command"
   91 	@ write test_script "$ define/user_mode sys$output sys$command"
   92 	@ write test_script "$ c_count 'p1 'p2 'p3 'p4 'p5 'p6 'p7 'p8"
   93 	@ close test_script
   94 	@ write sys$output "** made $@"