# -*- shell-script -*-

# copy and include extra mknetrel stuff
. $src/$cygwin/mknetrel.extras || . $mknetrel/extras

flags () {
    addmakeflags \
 "ALL_OBJS='\$(OBJS)'" ' '\
 "WRC=/usr/bin/wrc" ' '\
 "CPPFLAGS=-I$cygwin_prefix/include" ' '\
 "RC='\$(WRC) \$(CPPFLAGS)'" ' '\
 "LIBWINE=" ' '\
 "LIBPORT=" ' '\
 "MKINSTALLDIRS=$src/mkinstalldirs" ' '\
 "INSTALL_PROGRAM=$src/install-sh" ' '\

}

prebuild () {
    extras_prebuild
    flags
}

preinstall () {
    extras_preinstall
    flags
}

postinstall () {
    extras_postinstall

    # remove non-standard makefiles
    rm -f $inst/$packagedocdir/Make*

    # remove capitalized source files
    rm -f $inst/$packagedocdir/*.rc
    rm -f $inst/$packagedocdir/*.c
}