Makefile revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye * NOTE: this provides ast enhanced versions of INIT executables
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyemamake :: mamake.c LICENSE=since=1999,author=gsf
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyerelease :: release.c LICENSE=since=1999,author=gsf
38115c792a2142d264ca2617b11962301f079c0aTrond Norbyesear :: sear.sh LICENSE=since=2001,author=dgk+gsf
fcb68bae47907ba23c545e379c81c3ee6e19f778Lubos Koscochanges :: changes.sh LICENSE=since=2005,author=gsf
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye$(LIBDIR)/sear :INSTALLDIR: ratz.c sear.ico sear32.ico sear64.ico
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye * ../INIT/proto.c is snarfed from the standalone src
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye * this is a gross hack to allow only one copy of the source
38115c792a2142d264ca2617b11962301f079c0aTrond Norbye if grep '^#pragma prototyped' $(*) >/dev/null 2>/dev/null
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye -e '/\/\*DELAY_CONTROL\*\//,/\/\*NODELAY_CONTROL\*\//s/^#/DELAY_CONTROL /' \
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye -e '/\/\*DELAY_CONTROL\*\//s/^/#define DELAY_CONTROL # \
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye -e '/\/\*NODELAY_CONTROL\*\//s/^/#undef DELAY_CONTROL /' \
9a4361e23046cda58b9a5b8f4e11910dc433badaLubos Kosco $(CPP) $(CPPFLAGS) -I$(INSTALLROOT)/include/ast -DPROTO_STANDALONE -D-F$(*) -D-L -I-D -E a.$(tmp).c |
a90c307564052f582357f820eadec4390e6a86c6Trond Norbye $(SED) -e 's%".*/src/cmd/proto/%"%' -e 's%".*/src/cmd/%"../%' -e 's%".*/src/lib/%"../../lib/%' |
9f5a7adefcd3e07345b92f0deb1ed1c30df6eec2Trond Norbye if test '' != '$(<:P=L*:O=N)' && $(CMP) -s b.$(tmp).c $(<:P=L*:O=N)