1 OBJECTS
=ext.o debug.o dll.o factory.o menu.o systeminfo.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
22 factory.o
: factory.h ext.h menu.h
23 menu.o
: menu.h ext.h debug.h systeminfo.h
24 systeminfo.o
: systeminfo.h
26 install: all install.reg
27 regsvr32
-s git_shell_ext.dll
28 regedit
-s
install.reg
31 regsvr32
-u
-s git_shell_ext.dll
32 regedit
-s
uninstall.reg
34 install.reg
: install.reg.in Makefile
36 -e
's|@@MSYSGIT_PATH@@|$(MSYSGIT_PATH)|' \
37 -e
's|@@DLL_PATH@@|$(DLL_PATH)|'
40 -rm -f
$(OBJECTS
) $(TARGET
)