diff --git a/Makefile b/Makefile index a36dd4d..215c98c 100755 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ default: all all: vvm clean: - -$(RM) vvm + -$(RM) vvm vvm.o -vvm: - $(CXX) $(CXXFLAGS) -o vvm vvm.cpp +vvm: vvm.o + $(CXX) $(CXXFLAGS) -o vvm vvm.o +vvm.o: + $(CXX) -o vvm.o -c vvm.cpp diff --git a/Makefile.mingw b/Makefile.mingw index f57131c..1f5251b 100755 --- a/Makefile.mingw +++ b/Makefile.mingw @@ -7,7 +7,9 @@ default: all all: vvm.exe clean: - -$(RM) vvm.exe + -$(RM) vvm.exe vvm.exe.o -vvm.exe: - $(CXX) $(CXXFLAGS) -o vvm.exe vvm.cpp -static -static-libgcc -static-libstdc++ +vvm.exe: vvm.exe.o + $(CXX) $(CXXFLAGS) -o vvm.exe vvm.exe.o -static -static-libgcc -static-libstdc++ +vvm.exe.o: + $(CXX) -o vvm.exe.o -c vvm.cpp diff --git a/vvm.cpp b/vvm.cpp index dac9f2d..c8508bc 100644 --- a/vvm.cpp +++ b/vvm.cpp @@ -7,8 +7,6 @@ bool noext = false; bool verbose = false; bool quiet = false; -FILE *fAnimLog; - struct ejoint { const char *name; @@ -1444,7 +1442,6 @@ void printlastanim(void) printf(" frame %i:\tname=\"%s\"\tfps=%g, %s\n", anims.length()-1, &stringdata[a.name], a.fps, (a.flags & VVM_LOOP)?"looped":"clamped"); else { - fprintf( fAnimLog, "%s,\n", &stringdata[a.name] ); printf(" anim %i:\tname=\"%s\",\tframes=%i, fps=%g, %s\n", anims.length()-1, &stringdata[a.name], a.numframes, a.fps, (a.flags & VVM_LOOP)?"looped":"clamped"); } @@ -4877,9 +4874,6 @@ int main(int argc, char **argv) vector hitboxes; filespec inspec; const char *outfile = NULL; - char strAnimLog[80]; - sprintf( strAnimLog, "%s_anims.log", argv[1] ); - fAnimLog = fopen( strAnimLog, "w"); for(int i = 1; i < argc; i++) { @@ -5009,7 +5003,6 @@ int main(int argc, char **argv) } else fatal("failed writing: %s", outfile); - fclose( fAnimLog ); return EXIT_SUCCESS; }