You will need to use DOSBox to install the game and gain access to the game files.
Before you compile, you will need to edit the file version.h to make sure the binary works for your game files. I don’t think this was done in your script. Judging from the name of the zip file, I think this is shareware version 1.4 so you need to leave line 10 (#define UPLOAD) and line 12 (#define CARMACIZED) uncommented.
[Edit 21 Jan]
I can confirm that the above works. You may have to reboot after you have compiled the binary.
Wolf3d Full v1.1 Apogee (with ReadThis) – define CARMACIZED and APOGEE_1_1
Wolf3d Full v1.4 Apogee (with ReadThis) – define CARMACIZED
Wolf3d Full v1.4 GT/ID/Activision – define CARMACIZED and GOODTIMES
Wolf3d Shareware v1.0 – define UPLOAD and APOGEE_1_0
Wolf3d Shareware v1.1 – define CARMACIZED and UPLOAD and APOGEE_1_1
Wolf3d Shareware v1.2 – define CARMACIZED and UPLOAD and APOGEE_1_2
Wolf3d Shareware v1.4 – define CARMACIZED and UPLOAD
Spear of Destiny Full and Mission Disks – define CARMACIZED and SPEAR
(and GOODTIMES for no FormGen quiz)
Spear of Destiny Demo – define CARMACIZED and SPEAR and SPEARDEMO
and have the 1.4 shareware version, and all the files are in the .wolf3d (home folder) and it still doesn’t work…