1# VMS MM[KS] makefile for XXD 2# tested with MMK and MMS as well. 3# 4# Maintained by Zoltan Arpadffy <[email protected]> 5# 6# Edit the lines in the Configuration section below to select. 7# 8# To build: use the following command line: 9# 10# mms/descrip=Make_vms.mms 11# or if you use mmk 12# mmk/descrip=Make_vms.mms 13# 14# To cleanup: mms/descrip=Make_vms.mms clean 15# 16###################################################################### 17# Configuration section. 18###################################################################### 19# Compiler selection. 20# Comment out if you use the VAXC compiler 21###################################################################### 22# DECC = YES 23 24##################################################################### 25# Uncomment if want a debug version. Resulting executable is DVIM.EXE 26###################################################################### 27# DEBUG = YES 28 29###################################################################### 30# End of configuration section. 31# 32# Please, do not change anything below without programming experience. 33###################################################################### 34 35CC = cc 36 37.IFDEF DECC 38CC_DEF = $(CC)/decc 39PREFIX = /prefix=all 40.ELSE 41CC_DEF = $(CC) 42PREFIX = 43.ENDIF 44 45LD_DEF = link 46 47.IFDEF DEBUG 48TARGET = dxxd.exe 49CFLAGS = /debug/noopt$(PREFIX)/cross_reference/include=[] 50LDFLAGS = /debug 51.ELSE 52TARGET = xxd.exe 53CFLAGS = /opt$(PREFIX)/include=[] 54LDFLAGS = 55.ENDIF 56 57.SUFFIXES : .obj .c 58 59SOURCES = xxd.c 60OBJ = xxd.obj 61 62.c.obj : 63 $(CC_DEF) $(CFLAGS) $< 64 65$(TARGET) : $(OBJ) 66 $(LD_DEF) $(LDFLAGS) /exe=$(TARGET) $+ 67 68clean : 69 -@ if "''F$SEARCH("*.obj")'" .NES. "" then delete/noconfirm/nolog *.obj;* 70 -@ if "''F$SEARCH("*.exe")'" .NES. "" then delete/noconfirm/nolog *.exe;* 71 72xxd.obj : xxd.c 73