Did you know…
What part of the F-104s did Lockheed itself build?
Short answer
Most production came from other factories: the F-104G was built by Lockheed, but also by Canadair and a European consortium with Messerschmitt/MBB, Dornier, Fiat, Fokker and SABCA. Lockheed contributed 191 two-seat trainers for Europe and Canada, plus spare parts and technical support.

A fighter built on an international assembly line
The F-104G was built by Lockheed and, under license, by Canadair and a consortium of European companies including Messerschmitt/MBB, Dornier, Fiat, Fokker, and SABCA. The consortium was organized into four groups: ARGE South, with Messerschmitt, Heinkel, Dornier, and Siebel; ARGE North, with Hamburger Flugzeugbau, Focke-Wulf, and Weserflug in Germany plus Fokker and Aviolanda in the Netherlands; the West Group, with SABCA and Avions Fairey in Belgium; and the Italian Group, with Fiat, Macchi, Piaggio, SACA, and SIAI-Marchetti. The four groups received contracts to build 210, 350, 189, and 200 F-104Gs, respectively.
What came from Lockheed
Lockheed itself built 191 two-seat trainers intended for both Europe and Canada, and also supplied spare parts and technical support.
Canadair's role
Canadair was chosen to build 200 aircraft for the RCAF under license from Lockheed, which also gave it a contract to build wing sets, tail assemblies, and rear fuselage sections for 66 F-104Gs destined for the West German air force. Canada, which had likewise chosen the Starfighter to meet its NATO obligations, delivered 121 wing sets, rear fuselages, and tail assemblies built by Canadair to Europe, while building 200 CF-104s with Orenda engines for the Royal Canadian Air Force. Canadair ultimately built a total of 600 wing, tail, and fuselage sections. In its final tally, the company made 200 CF-104s for the Canadian armed forces and 140 F-104Gs for Lockheed.
More questions

Peter Haas (CC BY SA), vía commons Military aviation
Why was the US Air Force's Boeing T-43 called "Gator"?
After its job: "Gator" is short for navigator. This modified Boeing 737-200 was used by the United States Air Force to train navigators, later called combat… more…

Military aviation
Where does the name of the E-7 Wedgetail radar aircraft come from?
The name comes from the wedge-tailed eagle, Australia's largest bird of prey. In 1996 Australia issued a request for tender for the RAAF under "Project… more…

Military aviation
Did you know the F-104's first prototype had an ejection seat that fired the pilot downward?
Yes: the first prototype, the XF-104, carried a Stanley B seat that fired downward, out of fear that an upward-firing seat wouldn't clear the T-tail. Early… more…

Military aviation
Did you know the F-104 was tested being launched like a rocket, with no runway?
Yes: the F-104 was tested with Zero-Length Launch (ZeLL), with the fighter on a short ramp and a booster rocket underneath that fired it into the air within… more…

Military aviation
What nickname did young US Navy pilots give the Corsair because it was so hard to land on a carrier?
It was known as the "Ensign Eliminator," and not without reason. Early Navy pilots also called it the "hog," "hosenose," or "bent-wing Widow Maker." Its long… more…

Military aviation
What tactic let the Corsair beat the Zero without turning with it?
The tactic was to dive from above: a high-speed pass, a short burst, and a quick climb back to altitude. Engaging a Zero in a classic turning dogfight could… more…