goldendict-ng/mouseover_win32/Makefile
Abs62 0e374a4abc Rewrite scan libraries on plain C completely instead of C++ in some modules.
It prevents some runtime library conflicts with other programs (Maxthon 3)
2011-07-12 16:52:07 +04:00

39 lines
929 B
Makefile

GCC:=gcc.exe -W -Wall -s -O2
.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 $<
IAccEx.o: IAccEx.c
$(GCC) -c $<
GetWordByIAccEx.o: GetWordByIAccEx.c
$(GCC) -c $<
guids.o: guids.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 IAccEx.o guids.o GetWordByIAccEx.o
$(GCC) -shared -o GdTextOutSpy.dll $^ -lgdi32 -luuid -loleacc -loleaut32 -Wl,--out-implib,libGdTextOutSpy.a