-ld65.exe: $(OBJS) $(LIBS)
- @echo DEBUG ALL > $(LNKCFG)
- @echo OPTION QUIET >> $(LNKCFG)
- @echo NAME $@ >> $(LNKCFG)
- @for %%i in ($(OBJS)) do echo FILE %%i >> $(LNKCFG)
- @for %%i in ($(LIBS)) do echo LIBRARY %%i >> $(LNKCFG)
- $(LD) system $(SYSTEM) @$(LNKCFG)
+$(EXE): $(OBJS) $(LIBS)
+ @echo "DEBUG ALL" > $(LNKCFG)
+ @echo "OPTION QUIET" >> $(LNKCFG)
+ @echo "OPTION MAP" >> $(LNKCFG)
+ @echo "OPTION STACK=65536" >> $(LNKCFG)
+ @echo "NAME $@" >> $(LNKCFG)
+ @for i in $(OBJS); do echo "FILE $${i}"; done >> $(LNKCFG)
+ @for i in $(LIBS); do echo "LIBRARY $${i}"; done >> $(LNKCFG)
+ @$(LD) system $(SYSTEM) @$(LNKCFG)