windows-nt/Source/XPSP1/NT/multimedia/directx/dxg/d3d/dx6/makefil0

82 lines
1.9 KiB
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
!INCLUDE $(NTMAKEENV)\makefile.plt
#
# If BUILDMSG is not defined, the define it as the empty string to make
# the conditionals easier to write.
#
!IFNDEF BUILDMSG
BUILDMSG=
!ENDIF
!IFNDEF NO_STRICT
STRICT=1
!ENDIF
!ifndef DXGROOT
DXGROOT = $(DXROOT)\dxg
!endif
!ifndef D3DROOT
D3DROOT = $(DXGROOT)\d3d
!endif
DXGGEN = $(PROJECT_ROOT)\published\dxg
D3DDX6INC = $(D3DROOT)\dx6\inc
TARGETSRCS0 = \
d3dmkhdr.m4 \
$(D3DDX6INC)\d3dp.h \
$(D3DDX6INC)\d3dtypesp.h \
$(D3DDX6INC)\d3dcapsp.h \
$(D3DDX6INC)\d3dhal.h
TARGETSRCS = $(TARGETSRCS0)
all: $(TARGETSRCS)
!IF "$(BUILDMSG)" != ""
@ech ; $(BUILDMSG) ;
!ENDIF
clean: all
clean1: cleansrc all
cleansrc:
# Use for loop because command.com's erase doesn't support multiple
# file listings. Separate sources into smaller lists because command.com
# faults. Totally bogus.
-@for %x in ($(TARGETSRCS0)) do erase %x
-@for %x in ($(TARGETSRCS1)) do erase %x
HSPLITFLAGS = -ts dx3 -ts dx4 -ts dx5 -ta dx6 -ts dx7 -ts dx8 -v 600 -ts external -ta internal
d3dmkhdr.m4 : $(DXGGEN)\d3dmkhdr.m4
copy $(DXGGEN)\d3dmkhdr.m4 .
$(D3DDX6INC)\d3dtypesp.h: $(DXGGEN)\d3dtypes.w $(DXGGEN)\d3dmkhdr.m4
m4 $(DXGGEN)\d3dtypes.w > tmp.wx
hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
del tmp.wx
del tmp.px
$(D3DDX6INC)\d3dp.h: $(DXGGEN)\d3d.w $(DXGGEN)\d3dmkhdr.m4
m4 $(DXGGEN)\d3d.w > tmp.wx
hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
del tmp.wx
del tmp.px
$(D3DDX6INC)\d3dcapsp.h: $(DXGGEN)\d3dcaps.w $(DXGGEN)\d3dmkhdr.m4
m4 $(DXGGEN)\d3dcaps.w > tmp.wx
hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
del tmp.wx
del tmp.px
$(D3DDX6INC)\d3dhal.h: $(DXGGEN)\d3dhal.w $(DXGGEN)\d3dmkhdr.m4
m4 $(DXGGEN)\d3dhal.w > tmp.wx
hsplit $(HSPLITFLAGS) -o $@ tmp.px tmp.wx
del tmp.wx
del tmp.px