forked from torsten/keychain_access
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (24 loc) · 787 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
TARGET = keychain_access
VERSION = v2
REV = $(shell git rev-parse --short=4 HEAD || cat git-rev)
DEBUG = -g
# DEBUG = -O2
DEFINES = -DKCA_VERSION=\"$(VERSION)\"
# If we somehow found a revision number
ifneq ($(REV),)
DEFINES += -DKCA_REV=\"$(REV)\"
endif
CFLAGS = -pipe -std=c99 -Wall -pedantic $(DEBUG) $(DEFINES) $(shell pkg-config --cflags libcrypto)
SRC_FILES = $(wildcard *.c)
O_FILES = $(SRC_FILES:%.c=%.o)
LDFLAGS = $(shell pkg-config --libs-only-L libcrypto)
LDLIBS = -framework Security -framework CoreFoundation $(shell pkg-config --libs-only-l libcrypto)
.PHONY: all clean run
all: $(TARGET)
$(TARGET): $(O_FILES)
clean:
rm -f *.o $(TARGET)
run: $(TARGET)
./$(TARGET)
install:
@echo No yet implemented, just copy the file yourself.