interplane.Get Omega
Read in your language

git

[Ported from github.com/git/git] Sync with Git 2.56.1

Brought by drakestapleton

branch master Branches Tags History

git / contrib / credential / libsecret / Makefile

32 lines · 791 bytes Raw Blame History
1# The default target of this Makefile is...
2all:: git-credential-libsecret
3
4-include ../../../config.mak.autogen
5-include ../../../config.mak
6
7prefix ?= /usr/local
8gitexecdir ?= $(prefix)/libexec/git-core
9
10CC ?= gcc
11CFLAGS ?= -g -O2 -Wall
12PKG_CONFIG ?= pkg-config
13INSTALL ?= install
14RM ?= rm -f
15
16INCS:=$(shell $(PKG_CONFIG) --cflags libsecret-1 glib-2.0)
17LIBS:=$(shell $(PKG_CONFIG) --libs libsecret-1 glib-2.0)
18
19%.o: %.c
20 $(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -o $@ -c $<
21
22git-credential-libsecret: git-credential-libsecret.o
23 $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
24
25install: git-credential-libsecret
26 $(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
27 $(INSTALL) -m 755 $< $(DESTDIR)$(gitexecdir)
28
29clean:
30 $(RM) git-credential-libsecret git-credential-libsecret.o
31
32.PHONY: all install clean