2012-08-23 18:57:45 +02:00
|
|
|
MAIN:=git-credential-gnome-keyring
|
|
|
|
all:: $(MAIN)
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
RM = rm -f
|
|
|
|
CFLAGS = -g -O2 -Wall
|
2016-06-14 13:27:05 +02:00
|
|
|
PKG_CONFIG = pkg-config
|
2012-08-23 18:57:45 +02:00
|
|
|
|
|
|
|
-include ../../../config.mak.autogen
|
|
|
|
-include ../../../config.mak
|
|
|
|
|
2016-06-14 13:27:05 +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)
|