2011-07-09 19:26:30 +00:00
|
|
|
GCC:=gcc.exe -W -Wall -s -O2
|
|
|
|
GPP:=g++.exe -W -Wall -s -O2
|
2010-12-03 21:12:20 +00:00
|
|
|
|
|
|
|
.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 $<
|
|
|
|
|
2011-07-09 19:26:30 +00:00
|
|
|
IAccEx.o: IAccEx.cc
|
|
|
|
$(GPP) -c $<
|
|
|
|
|
|
|
|
GetWordByIAccEx.o: GetWordByIAccEx.cc
|
|
|
|
$(GPP) -c $<
|
|
|
|
|
|
|
|
guids.o: guids.c
|
|
|
|
$(GCC) -c $<
|
|
|
|
|
2010-12-03 21:12:20 +00:00
|
|
|
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 $<
|
|
|
|
|
2011-07-09 19:26:30 +00:00
|
|
|
GdTextOutSpy.dll libGdTextOutSpy.a: TextOutSpy.o ThTypes.o IAccEx.o guids.o GetWordByIAccEx.o
|
|
|
|
$(GPP) -shared -o GdTextOutSpy.dll $^ -lgdi32 -luuid -loleacc -loleaut32 -Wl,--out-implib,libGdTextOutSpy.a
|