INSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed '$(transform)'`.1; echo "$(INSTALL_DATA) $$ff $(man1dir)/$$inst"; $(INSTALL_DATA) $$ff $(man1dir)/$$inst
 UNINSTALL_MAN1 = ff=$(srcdir)/$$file.1; inst=`echo $$file | sed '$(transform)'`.1; echo "rm -f $(man1dir)/$$inst"; rm -f $(man1dir)/$$inst
 
+#%.o: %.c
+#      $(C) $< -o $@
+
+#%: %.o
+#      $(L) $< -o $@ ../lib/librfxswf.a $(LIBS) 
+
+#%.o: %.cc
+#      $(CC) -DDATADIR=\"$(pkgdatadir)\" -I../lib -Ittf2pt1 -Ixpdf $< -o $@
+
 # GNU Makefile stuff
 
 .SUFFIXES:
 
     
     * mp3 extraction should also work for movieclips.
     * improve placeobject handling
+
+wav2swf:
+    
+    * -r flag doesn't work without -d option.
 
 
 clean: 
        rm -f *.o *.lo *.a *.la
-       cd lame;make clean;cd ..
+       cd lame;$(MAKE) clean;cd ..
 
 
 
 static ActionTAG*lastATAG(ActionTAG*atag)
 {
-    ActionTAG*last;
+    ActionTAG*last = 0;
     while(atag) {
        last = atag;
        atag=atag->next;
 
 
     processargs(argc, argv);
 
+    if(!definesound && framerate) {
+       printf("Warning! The -r option is experimental and won't work without -d\n");
+    }
+
     blocksize = 1152;
     blockspersecond = 11025.0/blocksize;
     framespersecond = blockspersecond;