blob: df6c1af24800b046210032df808872f7f69958ed [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#
Bram Moolenaar95f0b6e2019-12-15 12:54:18 +010014# To cleanup: mms/descrip=Make_vms.mms clean
15#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016######################################################################
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
Bram Moolenaar95f0b6e2019-12-15 12:54:18 +010062.c.obj :
Bram Moolenaar071d4272004-06-13 20:20:40 +000063 $(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;*
Bram Moolenaar95f0b6e2019-12-15 12:54:18 +010071
72xxd.obj : xxd.c