2012-08-23 18:57:45 +02:00
|
|
|
MAIN:=git-credential-gnome-keyring
|
|
|
|
all:: $(MAIN)
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
RM = rm -f
|
|
|
|
CFLAGS = -g -O2 -Wall
|
|
|
|
|
|
|
|
-include ../../../config.mak.autogen
|
|
|
|
-include ../../../config.mak
|
|
|
|
|
2013-09-23 20:49:09 +02:00
|
|
|
INCS:=$(shell pkg-config --cflags gnome-keyring-1 glib-2.0)
|
|
|
|
LIBS:=$(shell pkg-config --libs gnome-keyring-1 glib-2.0)
|
2012-08-23 18:57:45 +02:00
|
|
|
|
|
|
|
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)
|