diff --git a/grabTitles.py b/grabTitles.py index 58e7958..3f5a8af 100644 --- a/grabTitles.py +++ b/grabTitles.py @@ -26,6 +26,9 @@ os.system("gcc -c -Wall -fpic -Igtitles -o gtitles/gtitles.o gtitles/gtitles.c") os.system("ar rcs libgtitles.a gtitles/gtitles.o") os.system("gcc -shared -o gtitles/libgtitles.so gtitles/gtitles.o") -os.system("gcc -c -Wall -fpic -Icdecrypt cdecrypt/*.c") -os.system("ar rcs libcdecrypt.a *.o") -os.system("gcc -shared -o cdecrypt/libcdecrypt.so *.o") +os.system("gcc -c -Wall -fpic -O2 -UNDEBUG -DAES_ROM_TABLES -D_GNU_SOURCE -Icdecrypt -o cdecrypt/aes.o cdecrypt/aes.c") +os.system("gcc -c -Wall -fpic -O2 -UNDEBUG -DAES_ROM_TABLES -D_GNU_SOURCE -Icdecrypt -o cdecrypt/cdecrypt.o cdecrypt/cdecrypt.c") +os.system("gcc -c -Wall -fpic -O2 -UNDEBUG -DAES_ROM_TABLES -D_GNU_SOURCE -Icdecrypt -o cdecrypt/sha1.o cdecrypt/sha1.c") +os.system("gcc -c -Wall -fpic -O2 -UNDEBUG -DAES_ROM_TABLES -D_GNU_SOURCE -Icdecrypt -o cdecrypt/util.o cdecrypt/util.c") +os.system("ar rcs libcdecrypt.a cdecrypt/*.o") +os.system("gcc -shared -o cdecrypt/libcdecrypt.so cdecrypt/*.o")