debug_git(): add a newline after each message
[git-cheetah.git] / Makefile
blob6c5d576020ae09f42f2d2cd49e0878cb3c82f9cf
1 OBJECTS=ext.o debug.o dll.o factory.o menu.o systeminfo.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
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
24 systeminfo.o: systeminfo.h
26 install: all install.reg
27 regsvr32 -s git_shell_ext.dll
28 regedit -s install.reg
30 uninstall:
31 regsvr32 -u -s git_shell_ext.dll
32 regedit -s uninstall.reg
34 install.reg: install.reg.in Makefile
35 sed < $< > $@ \
36 -e 's|@@MSYSGIT_PATH@@|$(MSYSGIT_PATH)|' \
37 -e 's|@@DLL_PATH@@|$(DLL_PATH)|'
39 clean:
40 -rm -f $(OBJECTS) $(TARGET)