ff55c47d0f
Since this is a Gnome application, let's set the application name to something reasonable. This will be displayed in Gnome dialog boxes e.g. the one that prompts for the user's keyring password. We add an include statement for glib.h and add the glib-2.0 cflags and libs to the compilation arguments, but both of these are really noops since glib is already a dependency of gnome-keyring. Signed-off-by: Brandon Casey <drafnel@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
25 lines
459 B
Makefile
25 lines
459 B
Makefile
MAIN:=git-credential-gnome-keyring
|
|
all:: $(MAIN)
|
|
|
|
CC = gcc
|
|
RM = rm -f
|
|
CFLAGS = -g -O2 -Wall
|
|
|
|
-include ../../../config.mak.autogen
|
|
-include ../../../config.mak
|
|
|
|
INCS:=$(shell pkg-config --cflags gnome-keyring-1 glib-2.0)
|
|
LIBS:=$(shell pkg-config --libs gnome-keyring-1 glib-2.0)
|
|
|
|
SRCS:=$(MAIN).c
|
|
OBJS:=$(SRCS:.c=.o)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) $(INCS) -o $@ -c $<
|
|
|
|
$(MAIN): $(OBJS)
|
|
$(CC) -o $@ $(LDFLAGS) $^ $(LIBS)
|
|
|
|
clean:
|
|
@$(RM) $(MAIN) $(OBJS)
|