Nmakefile revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
:PACKAGE: ast
CCFLAGS = $(CC.OPTIMIZE) $(CC.DLL)
LICENSE = since=2003,author=kpv
.SOURCE .SOURCE.h : Vcdelta Vchuff Vcmisc Vctable Vcwindow
vcodex 2.0 :LIBRARY: vcodex.3 \
/* common */ \
/* sfio */ \
vcsfio.c \
/* Vcdelta */ \
/* Vchuff */ \
/* Vcmisc */ \
/* Vcwindow */ \
-lvgraph -ldll
$(SED) -e 's/HDR/LIB/g' $(*) > $(<)
src = $(*$(*$(*vcodex)):N=*.c:T=F)
vcmethods.h : (src) $$(-mam:+$$(src))
set -- `$(SED) -e '/VCLIB(/!d' -e 's/.*VCLIB(\(.*\)).*/\1/' $($(~:O=1))`
{
echo "/*"
echo " * list of default public -lvcodex methods"
echo " * proprietary methods are available as plugins under separate license(s)"
echo " *"
echo " * this file may be included multiple times in one source"
echo " */"
echo
echo "#ifndef VCMETHOD"
echo "#define VCMETHOD(m) extern Vcmethod_t* m;"
echo "#endif"
echo
for m
do echo "VCMETHOD($m)"
done
echo
echo "#undef VCMETHOD"
} > 1.$(tmp).h
if $(CMP) $(CMPFLAGS) 1.$(tmp).h $(<)
then $(RM) $(RMFLAGS) 1.$(tmp).h
else $(MV) 1.$(tmp).h $(<)
fi
:: RELEASE Makefile Vcdelta/Makefile Vchuff/Makefile \