1 OBJECTS
=ext.o debug.o dll.o factory.o menu.o systeminfo.o registry.o exec.o
4 TARGET
=git_shell_ext.dll
5 MSYSGIT_PATH
=$(shell cd
/; pwd
-W | sed
-e
's|/|\\\\\\\\|g')
6 DLL_PATH
=$(shell pwd
-W | sed
-e
's|/|\\\\\\\\|g')\\\\$(TARGET
)
11 $(CC
) $(CFLAGS
) $< -o
$@
13 $(TARGET
): $(OBJECTS
) git_shell_ext.def
14 dllwrap.exe
--enable-stdcall-fixup
--def git_shell_ext.def \
15 $(OBJECTS
) -o
$@
-luuid
-loleaut32
-lole32
17 # gcc $(LDFLAGS) -o $@ $(OBJECTS) -lole32 -luuid -loleaut32
18 # dlltool -d git_shell_ext.def -l $@ $(OBJECTS)
20 dll.o
: dll.h ext.h factory.h systeminfo.h registry.h
22 factory.o
: factory.h ext.h menu.h
23 menu.o
: menu.h ext.h debug.h systeminfo.h exec.h
24 systeminfo.o
: systeminfo.h
25 registry.o
: registry.h
26 exec.o
: debug.h systeminfo.h exec.h
29 regsvr32
-s
-n
-i
:machine
$(DLL_PATH
)
32 regsvr32
-u
-s
-n
-i
:machine
$(DLL_PATH
)
35 regsvr32
-s
$(DLL_PATH
)
38 regsvr32
-u
-s
$(DLL_PATH
)
41 -rm -f
$(OBJECTS
) $(TARGET
)