21 lines
363 B
Plaintext
21 lines
363 B
Plaintext
#
|
|
# Test of the null suffix transformation stuff
|
|
# The idea is to first make an executable from a .c file, then make
|
|
# a .nm file from the executable...
|
|
#
|
|
.MAKEFLAGS: -n
|
|
.SUFFIXES : .out .c .nm
|
|
.NULL : .out
|
|
.c.out :
|
|
cc -o $(.TARGET) $(.IMPSRC)
|
|
|
|
.out.nm :
|
|
nm -a $(.IMPSRC) > $(.TARGET)
|
|
|
|
.MAIN: a.nm
|
|
|
|
a.c::
|
|
: This should print
|
|
: cc -o a a.c
|
|
: nm -a a '>' a.nm
|