mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 19:44:06 +00:00
78 lines
2.1 KiB
Makefile
78 lines
2.1 KiB
Makefile
GCC:=gcc.exe -W -Wall -s -O2
|
|
GCC64:=x86_64-w64-mingw32-gcc.exe -W -Wall -s -O2
|
|
|
|
.PHONY: all x64 clean
|
|
|
|
all: GdTextOutHook.dll libGdTextOutHook.a GdTextOutSpy.dll libGdTextOutSpy.a
|
|
|
|
x64: x64helper.exe GdTextOutHook64.dll libGdTextOutHook64.a GdTextOutSpy64.dll libGdTextOutSpy64.a
|
|
|
|
clean:
|
|
rm -f *.o *.a *.dll *.exe
|
|
|
|
TextOutHook.o: TextOutHook.c
|
|
$(GCC) -DBUILDING_DLL -c $<
|
|
|
|
HookImportFunction.o: HookImportFunction.c
|
|
$(GCC) -c $<
|
|
|
|
GetWord.o: GetWord.c
|
|
$(GCC) -c $<
|
|
|
|
GdTextOutHook.dll libGdTextOutHook.a: TextOutHook.o HookImportFunction.o GetWord.o
|
|
$(GCC) -shared -o GdTextOutHook.dll $^ -lgdi32 -Wl,--out-implib,libGdTextOutHook.a
|
|
|
|
TextOutSpy.o: TextOutSpy.c
|
|
$(GCC) -DBUILDING_DLL -c $<
|
|
|
|
ThTypes.o: ThTypes.c
|
|
$(GCC) -c $<
|
|
|
|
IAccEx.o: IAccEx.c
|
|
$(GCC) -c $<
|
|
|
|
GetWordByIAccEx.o: GetWordByIAccEx.c
|
|
$(GCC) -c $<
|
|
|
|
guids.o: guids.c
|
|
$(GCC) -c $<
|
|
|
|
GdTextOutSpy.dll libGdTextOutSpy.a: TextOutSpy.o ThTypes.o IAccEx.o guids.o GetWordByIAccEx.o
|
|
$(GCC) -shared -o GdTextOutSpy.dll $^ -lgdi32 -luuid -loleacc -loleaut32 -Wl,--out-implib,libGdTextOutSpy.a
|
|
|
|
x64helper.exe: x64hooks64.o ThTypes64.o
|
|
$(GCC64) -Wl,--subsystem,windows -mwindows -o $@ $^
|
|
|
|
x64hooks64.o: x64hooks.c
|
|
$(GCC64) -o $@ -c $<
|
|
|
|
TextOutHook64.o: TextOutHook.c
|
|
$(GCC64) -o $@ -DBUILDING_DLL -c $<
|
|
|
|
HookImportFunction64.o: HookImportFunction.c
|
|
$(GCC64) -o $@ -c $<
|
|
|
|
GetWord64.o: GetWord.c
|
|
$(GCC64) -o $@ -c $<
|
|
|
|
GdTextOutHook64.dll libGdTextOutHook64.a: TextOutHook64.o HookImportFunction64.o GetWord64.o
|
|
$(GCC64) -shared -o GdTextOutHook64.dll $^ -lgdi32 -Wl,--out-implib,libGdTextOutHook64.a
|
|
|
|
TextOutSpy64.o: TextOutSpy.c
|
|
$(GCC64) -o $@ -DBUILDING_DLL -c $<
|
|
|
|
ThTypes64.o: ThTypes.c
|
|
$(GCC64) -o $@ -c $<
|
|
|
|
IAccEx64.o: IAccEx.c
|
|
$(GCC64) -o $@ -c $<
|
|
|
|
GetWordByIAccEx64.o: GetWordByIAccEx.c
|
|
$(GCC64) -o $@ -c $<
|
|
|
|
guids64.o: guids.c
|
|
$(GCC64) -o $@ -c $<
|
|
|
|
GdTextOutSpy64.dll libGdTextOutSpy64.a: TextOutSpy64.o ThTypes64.o IAccEx64.o guids64.o GetWordByIAccEx64.o
|
|
$(GCC64) -shared -o GdTextOutSpy64.dll $^ -lgdi32 -luuid -loleacc -loleaut32 -Wl,--out-implib,libGdTextOutSpy64.a
|