blob: 872cd75f723e1d61e4804e5ccb75f24294b62d26 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001# VMS MM[KS] makefile for XXD
2# tested with MMK and MMS as well.
3#
4# Maintained by Zoltan Arpadffy <arpadffy@polarhome.com>
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
15######################################################################
16# Configuration section.
17######################################################################
18# Compiler selection.
19# Comment out if you use the VAXC compiler
20######################################################################
21# DECC = YES
22
23#####################################################################
24# Uncomment if want a debug version. Resulting executable is DVIM.EXE
25######################################################################
26# DEBUG = YES
27
28######################################################################
29# End of configuration section.
30#
31# Please, do not change anything below without programming experience.
32######################################################################
33
34CC = cc
35
36.IFDEF DECC
37CC_DEF = $(CC)/decc
38PREFIX = /prefix=all
39.ELSE
40CC_DEF = $(CC)
41PREFIX =
42.ENDIF
43
44LD_DEF = link
45
46.IFDEF DEBUG
47TARGET = dxxd.exe
48CFLAGS = /debug/noopt$(PREFIX)/cross_reference/include=[]
49LDFLAGS = /debug
50.ELSE
51TARGET = xxd.exe
52CFLAGS = /opt$(PREFIX)/include=[]
53LDFLAGS =
54.ENDIF
55
56.SUFFIXES : .obj .c
57
58SOURCES = xxd.c
59OBJ = xxd.obj
60
61.obj.c :
62 $(CC_DEF) $(CFLAGS) $<
63
64$(TARGET) : $(OBJ)
65 $(LD_DEF) $(LDFLAGS) /exe=$(TARGET) $+
66
67clean :
68 -@ if "''F$SEARCH("*.obj")'" .NES. "" then delete/noconfirm/nolog *.obj;*
69 -@ if "''F$SEARCH("*.exe")'" .NES. "" then delete/noconfirm/nolog *.exe;*