mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-11-17 04:06:09 +06:00
0cb13b9d38
Actions like reading the registry and serial number were being done in python even though the final decryption was done in wine. This commit moves all windows logic except architecture detection into the exe ran under wine to simplify the architecture.
15 lines
438 B
Makefile
15 lines
438 B
Makefile
all: decrypt_win32.exe decrypt_win64.exe
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm decrypt_win32.exe decrypt_win64.exe 2>/dev/null || /bin/true
|
|
|
|
decrypt_win32.exe: main.c Makefile
|
|
i686-w64-mingw32-gcc main.c -Os -o decrypt_win32.exe -lcrypt32 -lwsock32
|
|
i686-w64-mingw32-strip decrypt_win32.exe
|
|
|
|
decrypt_win64.exe: main.c Makefile
|
|
x86_64-w64-mingw32-gcc main.c -Os -o decrypt_win64.exe -lcrypt32 -lwsock32
|
|
x86_64-w64-mingw32-strip decrypt_win64.exe
|
|
|