It is interesting to look at a comparison- my gut feeling is the cost of modern firearms is heavily driven by factors outside of manufacturing costs. Take the dewalt cordless drill, count the parts, the injection molded plastic parts, the motor, gear train, etc etc- it is a vastly more complex item than a glock. Yet it sells for 1/4 the price, at a major retailer- and they seem to change the design every year or two, so it is not as if the tooling has been amortized since time began, either. And glocks volume has to be way up there, it is not a boutique manufacturer by any means. It is not as if there are a row of guys behind benches, carefully hand fitting parts anymore- these things are cranked out with injection molding and CNC machine tools.
The fire arm may have more costly materials, but the amount used in each is minimal. There is something else going on, maybe regulatory or insurance costs. My guess, if the price of the gun was directly related to manufacturing costs, is that it should sell for well under $100.