29 lines
750 B
Plaintext
29 lines
750 B
Plaintext
|
#
|
||
|
# If BUILDMSG is not defined, the define it as the empty string to make
|
||
|
# the conditionals easier to write.
|
||
|
#
|
||
|
.SUFFIXES: .mh .mcp
|
||
|
|
||
|
GENTGT = $(_OBJ_DIR)\$(TARGET_DIRECTORY)
|
||
|
|
||
|
# We must use our own version of m4 for two reasons:
|
||
|
# 1. Alpha support.
|
||
|
# 2. It has bug fixes that are necessary to correctly process our m4 files.
|
||
|
M4 = $(DXGROOT)\tools\$(PROCESSOR_ARCHITECTURE)\m4.exe
|
||
|
|
||
|
# Create a .h file from a .mh file.
|
||
|
{..}.mh{$(GENTGT)}.h:
|
||
|
$(M4) -I.. $< > $*.h
|
||
|
|
||
|
# Create a .cpp file from a .mcp file.
|
||
|
{..}.mcp{$(GENTGT)}.cpp:
|
||
|
$(M4) -I.. $< > $(GENTGT)\$(<B).cpp
|
||
|
|
||
|
..\pvvid.mcp: ..\pvvid.mh
|
||
|
..\pvone.mcp: ..\pvvid.mh
|
||
|
..\loops.mcp: ..\pvvid.mh
|
||
|
|
||
|
$(GENTGT)\pvvid.cpp: ..\pvvid.mcp
|
||
|
$(GENTGT)\pvone.cpp: ..\pvone.mcp
|
||
|
$(GENTGT)\loops.cpp: ..\loops.mcp
|