1#*****************************************************************************
2#                                                                            *
3# Make file for VMS                                                          *
4# Author : J.Jansen (joukj@hrem.stm.tudelft.nl)                              *
5# Date : 10 May 2004                                                         *
6#                                                                            *
7#*****************************************************************************
8
9.first
10	define xaw_incdir xaw3d
11
12.c.obj :
13	copy vms.h,$(MMS$TARGET_NAME).c $(MMS$TARGET_NAME).c_
14	pipe gsed -e "s/X11\/Xaw/Xaw3d/" -e "s/X11\/extensions/extensions/"\
15	$(MMS$TARGET_NAME).c_ > $(MMS$TARGET_NAME).c__
16	cc$(CFLAGS) $(MMS$TARGET_NAME).c__
17	delete $(MMS$TARGET_NAME).c_;*
18	delete $(MMS$TARGET_NAME).c__;*
19
20CFLAGS=/name=(as_is,short)/float=ieee
21
22XPSRC = chroma.c color.c colorEdit.c dialog.c fatBitsEdit.c \
23	fileName.c fontSelect.c grab.c graphic.c hash.c help.c \
24	image.c imageComp.c iprocess.c main.c menu.c misc.c \
25	operation.c palette.c pattern.c print.c protocol.c readRC.c size.c \
26	snapshot.c text.c texture.c typeConvert.c
27
28XPOBJ = chroma.obj,color.obj,colorEdit.obj,dialog.obj,fatBitsEdit.obj,\
29	fileName.obj,fontSelect.obj,grab.obj,graphic.obj,hash.obj,help.obj,\
30	image.obj,imageComp.obj,iprocess.obj,main.obj,menu.obj,misc.obj,\
31	operation.obj,palette.obj,pattern.obj,print.obj,protocol.obj,readRC.obj,size.obj,\
32	snapshot.obj,text.obj,texture.obj,typeConvert.obj
33
34OPSRC = arcOp.c blobOp.c boxOp.c brushOp.c circleOp.c fillOp.c \
35	fontOp.c lineOp.c pencilOp.c polyOp.c splineOp.c selectOp.c \
36	sprayOp.c dynPenOp.c
37
38OPOBJ = arcOp.obj,blobOp.obj,boxOp.obj,brushOp.obj,circleOp.obj,fillOp.obj,\
39	fontOp.obj,lineOp.obj,pencilOp.obj,polyOp.obj,splineOp.obj,selectOp.obj,\
40	sprayOp.obj,dynPenOp.obj
41
42XPWIDSRC = Colormap.c Paint.c PaintEvent.c PaintRegion.c PaintUndo.c
43XPWIDOBJ = Colormap.obj,Paint.obj,PaintEvent.obj,PaintRegion.obj,PaintUndo.obj
44
45RWSRC =	[.rw]libpnmrw.c [.rw]readGIF.c [.rw]readJPEG.c [.rw]readTIFF.c \
46	[.rw]readWritePNM.c [.rw]readWriteSGI.c [.rw]readWriteXBM.c \
47	[.rw]readWriteXPM.c [.rw]readWriteXWD.c [.rw]rwTable.c \
48	[.rw]writeGIF.c [.rw]writeJPEG.c [.rw]writePS.c [.rw]writeTIFF.c \
49	[.rw]libpnmrw.h [.rw]rwTable.h
50RWOBJ =	[.rw]libpnmrw.obj,[.rw]readGIF.obj,[.rw]readJPEG.obj,[.rw]readTIFF.obj,\
51	[.rw]readWritePNM.obj,[.rw]readWriteSGI.obj,[.rw]readWriteXBM.obj,\
52	[.rw]readWriteXPM.obj,[.rw]readWriteXWD.obj,[.rw]rwTable.obj,\
53	[.rw]writeGIF.obj,[.rw]writePS.obj,[.rw]writeTIFF.obj
54
55SRCS = $(XPSRC) $(OPSRC) $(XPWIDSRC)
56OBJS = $(XPOBJ),$(OPOBJ),$(XPWIDOBJ)
57
58HDRS =	Colormap.h ColormapP.h hash.h Paint.h \
59	PaintP.h palette.h xpaint.h menu.h \
60	text.h region.h image.h patchlevel.h \
61	misc.h rc.h ops.h color.h graphic.h operation.h protocol.h
62
63BRBDIR = [.bitmaps.brushes]
64BRUSHBITMAPS = $(BRBDIR)paintA.xpm \
65	$(BRBDIR)paintB.xpm $(BRBDIR)paintC.xpm $(BRBDIR)paintD.xpm \
66	$(BRBDIR)paintE.xpm $(BRBDIR)paintF.xpm $(BRBDIR)paintG.xpm \
67	$(BRBDIR)paintH.xpm $(BRBDIR)paintI.xpm $(BRBDIR)paintJ.xpm \
68	$(BRBDIR)paintK.xpm $(BRBDIR)paintL.xpm $(BRBDIR)paintM.xpm \
69	$(BRBDIR)paintN.xpm $(BRBDIR)paintO.xpm $(BRBDIR)paintP.xpm \
70	$(BRBDIR)paintQ.xpm $(BRBDIR)paintR.xpm $(BRBDIR)paintS.xpm \
71	$(BRBDIR)paintT.xpm
72
73OPBDIR = [.bitmaps.big_tools]
74OPBITMAPS = $(OPBDIR)clineOp.xpm $(OPBDIR)lassoOp.xpm $(OPBDIR)rayOp.xpm \
75	$(OPBDIR)selpolyOp.xpm $(OPBDIR)selectOp.xpm $(OPBDIR)arcOp.xpm \
76	$(OPBDIR)boxOp.xpm $(OPBDIR)brushOp.xpm \
77	$(OPBDIR)dotPenOp.xpm $(OPBDIR)eraseOp.xpm $(OPBDIR)fboxOp.xpm \
78	$(OPBDIR)ffreehandOp.xpm $(OPBDIR)fillOp.xpm $(OPBDIR)fovalOp.xpm \
79	$(OPBDIR)fpolyOp.xpm $(OPBDIR)freehandOp.xpm $(OPBDIR)lineOp.xpm \
80	$(OPBDIR)ovalOp.xpm $(OPBDIR)pencilOp.xpm $(OPBDIR)polyOp.xpm \
81	$(OPBDIR)smearOp.xpm $(OPBDIR)sprayOp.xpm $(OPBDIR)textOp.xpm \
82	$(OPBDIR)tfillOp.xpm $(OPBDIR)dynPenOp.xpm
83
84XBMDIR = [.bitmaps.xbm]
85
86all :
87	set def [.rw]
88	$(MMS)
89	set def [-]
90	$(MMS) xpaint.exe
91	@ write sys$output "all done"
92
93xpaint.exe : $(OBJS) rw.olb link.opt
94	link/exec=xpaint.exe $(OBJS),rw/lib,link/opt
95
96Colormap.obj : Colormap.c vms.h ColormapP.h Colormap.h
97Paint.obj : Paint.c vms.h PaintP.h Paint.h xpaint.h misc.h
98PaintEvent.obj : PaintEvent.c vms.h PaintP.h Paint.h xpaint.h
99PaintRegion.obj : PaintRegion.c vms.h PaintP.h Paint.h protocol.h
100PaintUndo.obj : PaintUndo.c vms.h xpaint.h misc.h PaintP.h Paint.h
101blobOp.obj : blobOp.c vms.h xpaint.h misc.h Paint.h ops.h
102boxOp.obj : boxOp.c vms.h xpaint.h misc.h Paint.h ops.h
103brushOp.obj : brushOp.c vms.h xpaint.h misc.h Paint.h palette.h \
104	graphic.h protocol.h ops.h $(BRUSHBITMAPS)
105circleOp.obj : circleOp.c vms.h xpaint.h misc.h Paint.h ops.h
106chroma.obj : chroma.c vms.h xpaint.h Paint.h palette.h protocol.h color.h messages.h \
107	 misc.h operation.h ops.h
108color.obj : color.c vms.h messages.h palette.h protocol.h color.h xpaint.h misc.h image.h
109colorEdit.obj : colorEdit.c vms.h misc.h palette.h color.h protocol.h
110dialog.obj : dialog.c vms.h misc.h xpaint.h protocol.h
111fatBitsEdit.obj : fatBitsEdit.c vms.h Paint.h xpaint.h messages.h palette.h menu.h misc.h region.h \
112	protocol.h graphic.h
113fileName.obj : fileName.c vms.h Paint.h messages.h misc.h image.h [.rw]rwTable.h graphic.h \
114	protocol.h
115fontSelect.obj : fontSelect.c vms.h xpaint.h messages.h misc.h operation.h ops.h graphic.h protocol.h
116grab.obj : grab.c vms.h image.h
117graphic.obj : graphic.c vms.h xpaint.h palette.h messages.h misc.h menu.h text.h graphic.h \
118	image.h region.h operation.h rc.h protocol.h color.h [.rw]rwTable.h
119hash.obj : hash.c vms.h misc.h hash.h
120help.obj : help.c vms.h Paint.h misc.h protocol.h
121image.obj : image.c vms.h image.h hash.h palette.h misc.h protocol.h
122imageComp.obj : imageComp.c vms.h image.h hash.h protocol.h misc.h
123iprocess.obj : iprocess.c vms.h xpaint.h image.h misc.h protocol.h graphic.h
124lineOp.obj : lineOp.c vms.h xpaint.h misc.h Paint.h ops.h
125main.obj : main.c vms.h XPaint.ad.h messages.h misc.h graphic.h protocol.h [.rw]rwTable.h\
126	XPaintIcon.xpm
127menu.obj : menu.c vms.h menu.h $(XBMDIR)checkmark.xbm $(XBMDIR)pullright.xbm
128misc.obj : misc.c vms.h $(XBMDIR)background.xbm xpaint.h misc.h messages.h
129operation.obj : operation.c vms.h $(OPBITMAPS) Local.config ops.h xpaint.h misc.h \
130	menu.h Paint.h text.h graphic.h image.h operation.h protocol.h \
131	region.h messages.h
132	copy vms.h,operation.c operation.c_
133	pipe gsed -e "s/X11\/Xaw/Xaw3d/"\
134	-e "s/bitmaps\/tools\//[.bitmaps.big_tools]/" operation.c_ > \
135	operation.c__
136	cc$(CFLAGS)/include=$(OPBDIR) operation.c__
137	delete operation.c_;*
138	delete operation.c__;*
139palette.obj : palette.c vms.h messages.h palette.h hash.h misc.h image.h xpaint.h
140pattern.obj : pattern.c vms.h Colormap.h Paint.h palette.h xpaint.h menu.h misc.h image.h \
141	region.h text.h graphic.h operation.h color.h protocol.h messages.h
142pencilOp.obj : pencilOp.c vms.h xpaint.h Paint.h misc.h ops.h
143print.obj : print.c vms.h xpaint.h menu.h image.h messages.h misc.h region.h text.h \
144	graphic.h operation.h color.h protocol.h
145protocol.obj : protocol.c vms.h xpaint.h messages.h misc.h protocol.h \
146	$(XBMDIR)wait1.xbm $(XBMDIR)wait2.xbm \
147	$(XBMDIR)wait3.xbm $(XBMDIR)wait4.xbm
148readRC.obj : readRC.c vms.h image.h rc.h misc.h DefaultRC.txt.h
149size.obj : size.c vms.h Paint.h messages.h misc.h text.h
150snapshot.obj : snapshot.c vms.h Paint.h image.h messages.h
151text.obj : text.c vms.h misc.h protocol.h text.h
152typeConvert.obj : typeConvert.c vms.h palette.h misc.h
153fontOp.obj : fontOp.c vms.h xpaint.h Paint.h graphic.h misc.h ops.h
154arcOp.obj : arcOp.c vms.h xpaint.h Paint.h misc.h ops.h
155polyOp.obj : polyOp.c vms.h xpaint.h misc.h Paint.h ops.h
156fillOp.obj : fillOp.c vms.h Paint.h protocol.h xpaint.h ops.h image.h misc.h palette.h
157selectOp.obj : selectOp.c vms.h xpaint.h Paint.h protocol.h palette.h color.h misc.h \
158	operation.h ops.h region.h
159sprayOp.obj : sprayOp.c vms.h xpaint.h Paint.h misc.h ops.h
160
161texture.obj : texture.c vms.h
162
163splineOp.obj : splineOp.c vms.h
164
165dynPenOp.obj : dynPenOp.c vms.h
166
167messages.h : preproc.exe [.share.messages]Messages.
168	pipe run preproc > messages.h
169
170preproc.exe : preproc.obj
171	link preproc.obj
172
173preproc.obj : preproc.c
174	cc $(CFLAGS) preproc.c
175
176XPaint.ad : substads.exe [.app-defaults]XPaint_ad.in\
177	[.app-defaults]XPaint_fr_ad.in
178	set def [.app-defaults]
179	mc [-]substads.exe -appdefs \
180	            XPAINT_VERSION "2.8.0" \
181		    XPAINT_SHAREDIR "XPAINT$SHARE" \
182		    XPAINT_PRINT_COMMAND "PRINT" \
183		    XPAINT_POSTSCRIPT_VIEWER "gs" \
184		    XPAINT_EXTERN_VIEWER "XPAINT$VIEWER"
185	set def [-]
186	copy [.app-defaults.out]XPaint. []XPaint.ad
187
188substads.exe : substads.obj
189	link substads.obj
190
191substads.obj : substads.c
192	cc $(CFLAGS) substads.c
193
194XPaint.ad.h : XPaint.ad substads.exe
195	mc []substads -ad2c XPaint.ad XPaint.ad.h
196
197[.app-defaults]xpaint_ad.in : [.app-defaults]XPaint.ad.in
198	set file/enter=[.app-defaults]xpaint_ad.in [.app-defaults]XPaint^.ad.in
199
200[.app-defaults]xpaint_fr_ad.in : [.app-defaults]XPaint_fr.ad.in
201	set file/enter=[.app-defaults]xpaint_fr_ad.in [.app-defaults]XPaint_fr^.ad.in
202
203DefaultRC.txt.h : DefaultRC. substads.exe
204	mc []substads -ad2c DefaultRC. DefaultRC.txt.h
205