New version of wmake supporting out-of-tree object and dependency files
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
.SUFFIXES: .Cver
|
||||
#-------------------------------*- makefile -*---------------------------------
|
||||
|
||||
#
|
||||
# update version strings in C++ file and in $WM_PROJECT_DIR/.build file
|
||||
#
|
||||
SUFFIXES += .Cver
|
||||
|
||||
# Update version strings in C++ file and in $WM_PROJECT_DIR/.build file
|
||||
Cvertoo = \
|
||||
sed -e 's!VERSION_STRING!$(shell wmakePrintBuild -major)!' \
|
||||
-e 's!BUILD_STRING!$(shell wmakePrintBuild -update)!' \
|
||||
$$SOURCE > $*.C; \
|
||||
$(CC) $(c++FLAGS) -c $*.C -o $@
|
||||
$< > $(@D)/$(<F).C; \
|
||||
$(CC) $(c++FLAGS) -c $(@D)/$(<F).C -o $@
|
||||
|
||||
.Cver.dep:
|
||||
$(MAKE_DEP)
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user