Ullrich von Bassewitz wrote: >So all you have to do is to generate a file containing the names of all object >files, one per line, and pass the name of the file with an '@' prepended to >ld65. Some "make" implementations do even allow to build such a file at >runtime. > >And yes, this should go into the docs:-) > > Hi Uz, Now it works perfectly. I implemented the runtime build of the object list to my project. I have a directory for my project like: project - resident - intro - sketch - cart ... I created a small skript in my sketch/Makefile to get this done: all: $(objects) $(ECHO) dummy > objlist $(RM) objlist for obj in $(objects); do $(ECHO) ../sketch/$$obj >> objlist; done And in the cart/Makefile where I do the linking of the final cart image: others = \ @../resident/objlist \ @../abccreator/objlist \ @../dump/objlist \ @../intro/objlist \ @../password/objlist \ @../sdintro/objlist \ @../sketch/objlist \ @../starcor/objlist \ @../starfly/objlist \ @../starmap/objlist $(target) : $(objects) $(CL) -t $(SYS) -o $@ -m lynxcart.map -C lynxcart.cfg $(objects) $(others) $(SYS).lib $(RM) null So no problems with command line lengths anymore :) This could really go into the docs. -- Thank you, Karri ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Sep 30 07:40:24 2005
This archive was generated by hypermail 2.1.8 : 2005-09-30 07:40:27 CEST