1 OBJECTS
=ext.o debug.o dll.o factory.o menu.o systeminfo.o registry.o \
2 exec.o menuengine.o cheetahmenu.o
3 CFLAGS
=-O
-g
-DNO_MMAP
-DNO_PREAD
-DNO_STRLCPY
4 COMPAT_H
= cache.h git-compat-util.h hash.h strbuf.h compat
/mingw.h
5 COMPAT_OBJ
= date.o sha1_file.o strbuf.o usage.o wrapper.o \
6 compat
/mingw.o compat
/mmap.o compat
/pread.o compat
/strlcpy.o \
9 TARGET
=git_shell_ext.dll
10 MSYSGIT_PATH
=$(shell cd
/; pwd
-W | sed
-e
's|/|\\\\\\\\|g')
11 DLL_PATH
=$(shell pwd
-W | sed
-e
's|/|\\\\\\\\|g')\\\\$(TARGET
)
16 $(CC
) $(CFLAGS
) $< -o
$@
18 $(TARGET
): $(OBJECTS
) $(COMPAT_OBJ
) git_shell_ext.def
19 dllwrap.exe
--enable-stdcall-fixup
--def git_shell_ext.def \
20 $(OBJECTS
) $(COMPAT_OBJ
) -o
$@
-luuid
-loleaut32
-lole32
-lws2_32
22 # gcc $(LDFLAGS) -o $@ $(OBJECTS) -lole32 -luuid -loleaut32
23 # dlltool -d git_shell_ext.def -l $@ $(OBJECTS)
25 dll.o
: dll.h ext.h factory.h systeminfo.h registry.h menuengine.h
26 ext.o
: ext.h debug.h systeminfo.h menuengine.h
27 factory.o
: factory.h ext.h menu.h menuengine.h
28 menu.o
: menu.h ext.h debug.h systeminfo.h exec.h menuengine.h cheetahmenu.h
29 systeminfo.o
: systeminfo.h
30 registry.o
: registry.h
31 exec.o
: debug.h systeminfo.h exec.h
32 cheetahmenu.o
: exec.h menuengine.h cheetahmenu.h
33 menuengine.o
: menuengine.h
35 $(COMPAT_OBJ
) : $(COMPAT_H
)
38 regsvr32
-s
-n
-i
:machine
$(DLL_PATH
)
41 regsvr32
-u
-s
-n
-i
:machine
$(DLL_PATH
)
44 regsvr32
-s
$(DLL_PATH
)
47 regsvr32
-u
-s
$(DLL_PATH
)
50 -rm -f
$(OBJECTS
) $(COMPAT_OBJ
) $(TARGET
)