Two gun-makers who have opposed a police-favored bill for bullet microstamping received more than $6 million in state economic development funds since 2009, the Daily News has learned.

Most of the grant money, $5.6 million, went to the Remington Arms Company, which threatened recently to leave New York if the state passes a microstamping measure.

The initiative, backed by Gov. Cuomo during his gubernatorial campaign, would require bullet casings to carry unique markings — something the law enforcement community believes would help detectives solve gun crimes.

The taxpayer-funded economic development dough was intended to create jobs — but Kimber Manufacturing in Yonkers, a recipient of $700,000 in grants, warned in a recent letter to Cuomo that micro-stamping would lead to an increase in production costs, which could in turn jeopardize job safety for some workers.

The economic development grants were revealed in state documents obtained by New Yorkers Against Gun Violence through a Freedom of Information Law request.

Combined with federal and local funds doled out to Remington and Kimber in recent years, the total taxpayer commitment amounted to $10.4 million.

The economic investment comes as Mayor Bloomberg, a major backer of microstamping, has railed against the scourge of illegal firearms in the city.

“Giving millions of dollars of taxpayer money to the gun industry in sweetheart deals while thousands of innocent New Yorkers die each year by guns cannot be justified,” said New Yorkers Against Gun Violence Executive Director Jackie Hilly.