comparison src/xxd/Make_vms.mms @ 0:76efa0be13f1

Initial revision
author atsuki
date Sat, 10 Nov 2007 15:07:22 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:76efa0be13f1
1 # 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
34 CC = cc
35
36 .IFDEF DECC
37 CC_DEF = $(CC)/decc
38 PREFIX = /prefix=all
39 .ELSE
40 CC_DEF = $(CC)
41 PREFIX =
42 .ENDIF
43
44 LD_DEF = link
45
46 .IFDEF DEBUG
47 TARGET = dxxd.exe
48 CFLAGS = /debug/noopt$(PREFIX)/cross_reference/include=[]
49 LDFLAGS = /debug
50 .ELSE
51 TARGET = xxd.exe
52 CFLAGS = /opt$(PREFIX)/include=[]
53 LDFLAGS =
54 .ENDIF
55
56 .SUFFIXES : .obj .c
57
58 SOURCES = xxd.c
59 OBJ = xxd.obj
60
61 .obj.c :
62 $(CC_DEF) $(CFLAGS) $<
63
64 $(TARGET) : $(OBJ)
65 $(LD_DEF) $(LDFLAGS) /exe=$(TARGET) $+
66
67 clean :
68 -@ if "''F$SEARCH("*.obj")'" .NES. "" then delete/noconfirm/nolog *.obj;*
69 -@ if "''F$SEARCH("*.exe")'" .NES. "" then delete/noconfirm/nolog *.exe;*