aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/credential/wincred/Makefile
blob: d92e721e249beb5dba521e65c006a5fa2993a5f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# The default target of this Makefile is...
all:: git-credential-wincred.exe

-include ../../../config.mak.autogen
-include ../../../config.mak

prefix ?= /usr/local
gitexecdir ?= $(prefix)/libexec/git-core

CC ?= gcc
CFLAGS ?= -O2 -Wall
INSTALL ?= install
RM ?= rm -f

git-credential-wincred.exe: git-credential-wincred.c
	$(LINK.c) -o $@ $^ $(LDFLAGS) $(LDLIBS)

install: git-credential-wincred.exe
	$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
	$(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir)

clean:
	$(RM) git-credential-wincred.exe

.PHONY: all install clean