-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathMakefile
18 lines (14 loc) · 826 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC := $(CC)
CXX := $(CXX)
CXXFLAGS := $(CXXFLAGS)
LDFLAGS := $(LDFLAGS)
CURL_CFLAGS := $(shell pkg-config --cflags libcurl)
PNG_CFLAGS := $(shell pkg-config --cflags libpng)
CURL_LIBS := $(shell pkg-config --libs libcurl) -lcurl
PNG_LIBS := $(shell pkg-config --libs libpng)
stitch: stitch.c
$(CC) -g -Wall -O3 $(CFLAGS) $(LDFLAGS) -o stitch stitch.c $(CURL_CFLAGS) $(PNG_CFLAGS) $(JPEG_CFLAGS) $(CURL_LIBS) $(PNG_LIBS) $(JPEG_LIBS) -ljpeg -lm -lgeotiff -ltiff
clean:
rm -f stitch
indent:
clang-format -i -style="{BasedOnStyle: Google, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, ColumnLimit: 0, ContinuationIndentWidth: 8, SpaceAfterCStyleCast: true, IndentCaseLabels: false, AllowShortBlocksOnASingleLine: false, AllowShortFunctionsOnASingleLine: false, SortIncludes: false}" stitch.c