Raw
1 # The default target of this Makefile is...
2 all:: git-credential-wincred.exe
3
4 -include ../../../config.mak.autogen
5 -include ../../../config.mak
6
7 prefix ?= /usr/local
8 gitexecdir ?= $(prefix)/libexec/git-core
9
10 CC ?= gcc
11 CFLAGS ?= -O2 -Wall
12 INSTALL ?= install
13 RM ?= rm -f
14
15 git-credential-wincred.exe: git-credential-wincred.c
16 $(LINK.c) -o $@ $^ $(LDFLAGS) $(LDLIBS)
17
18 install: git-credential-wincred.exe
19 $(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
20 $(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir)
21
22 clean:
23 $(RM) git-credential-wincred.exe
24
25 .PHONY: all install clean