Skip to content

Commit aa08645

Browse files
committed
mingw: Compile the Git wrapper
We take care to embed the manifest, too, because we will modify the wrapper in the next few commits to serve as a drop-in replacement for the built-ins, i.e. we will want to call the wrapper under names such as 'git-patch-id.exe', too. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 27db4f8 commit aa08645

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

config.mak.uname

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,14 @@ else
561561
else
562562
NO_CURL = YesPlease
563563
endif
564+
OTHER_PROGRAMS += git-wrapper$(X)
565+
566+
git-wrapper$(X): compat/win32/git-wrapper.o git.res
567+
$(QUIET_LINK)$(CC) -Wall -s -o $@ $^ -lshell32 -lshlwapi
568+
569+
compat/win32/git-wrapper.o: %.o: %.c
570+
$(QUIET_CC)$(CC) -o $*.o -c -Wall -Wwrite-strings $<
571+
564572
endif
565573
endif
566574
ifeq ($(uname_S),QNX)

0 commit comments

Comments
 (0)