Preview implementation of "smart" context menu
[git-cheetah/kirill.git] / Makefile
blobbfc2bc693fae6af95f39e29d26ec100ae72a1612
1 OBJECTS=ext.o debug.o dll.o factory.o menu.o systeminfo.o registry.o exec.o
2 CFLAGS=-O -g
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)
8 all: $(TARGET)
10 .o:.c
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
21 ext.o: ext.h debug.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
28 install: all
29 regsvr32 -s -n -i:machine $(DLL_PATH)
31 uninstall: all
32 regsvr32 -u -s -n -i:machine $(DLL_PATH)
34 install-user: all
35 regsvr32 -s $(DLL_PATH)
37 uninstall-user: all
38 regsvr32 -u -s $(DLL_PATH)
40 clean:
41 -rm -f $(OBJECTS) $(TARGET)