Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!radius!lemke From: lemke@radius.com (Steve Lemke) Newsgroups: comp.sys.mac.programmer Subject: Re: A silly question for some one who know MPW Keywords: resource files, silly Message-ID: <1391@radius.com> Date: 10 Jan 91 18:10:10 GMT References: <29237@usc> Distribution: comp.sys.mac Lines: 44 davidp@calvin.usc.edu (David Peterson) writes: >Currently I just use a single line ".r" file in the form: > Include "ResEditFile.rsrc"; >but 'make' only checks to see if the .r file has changed, not the >included file, so I have to do a full build to get any resource >changes implemented in my program. > >I know I can link my object code directly into the ResEdit file >(providing its set up right) but I'd rather keep it seperate, and >just link it all into a new file. It's not a silly question, but a good one, and one I've also asked... You've almost got it, but your Make file should look like this: -------- begin sample make file --------- Installer.o /f/ Installer.c Installer.h C -n -w Installer.c -o Installer.o Installer /ff/ Installer.rsrc Installer.r Rez -a -o Installer Installer.r Installer /ff/ Installer.make Installer.o Link -w -t APPL {CLibraries}... Installer.o -o Installer --------- end sample make file ---------- The /f/ is a curly "f" (option-f), and /ff/ is a double curly "f". The {CLibraries}... is where you should put all of the needed libraries. I had to deal with this same problem - the programmer who worked on this before I did always linked the compiled code directly into the original resource file. So, I made Installer.r, and put the /ff/ lines in. My Installer.r file is just like yours. Good luck... Steve -- ----- Steve Lemke, (now in) Software Engineering, Radius Inc., San Jose ----- ----- "I'm not a UNIX wizard, but I play the Postmaster at radius.com." ----- ----- Reply to: lemke@radius.com (radius!lemke@apple.com works too!) -----