mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
30 lines
718 B
Makefile
30 lines
718 B
Makefile
|
GCC:=i586-mingw32msvc-gcc -W -Wall
|
||
|
|
||
|
.PHONY: all clean
|
||
|
|
||
|
all: GdTextOutHook.dll libGdTextOutHook.a GdTextOutSpy.dll libGdTextOutSpy.a
|
||
|
|
||
|
clean:
|
||
|
rm -f *.o *.a *.dll
|
||
|
|
||
|
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 $<
|
||
|
|
||
|
GdTextOutSpy.dll libGdTextOutSpy.a: TextOutSpy.o ThTypes.o
|
||
|
$(GCC) -shared -o GdTextOutSpy.dll $^ -lgdi32 -Wl,--out-implib,libGdTextOutSpy.a
|