2024-02-22 17:11:06 -05:00
|
|
|
CC = clang
|
2024-06-27 19:39:44 -04:00
|
|
|
CFLAGS_GLIB = $(shell pkgconf --cflags --libs glib-2.0)
|
|
|
|
CFLAGS_GEOCLUE = $(shell pkgconf --cflags --libs libgeoclue-2.0)
|
|
|
|
CFLAGS_JSONC = $(shell pkgconf --cflags --libs json-c)
|
|
|
|
CFLAGS_CURL = $(shell pkgconf --cflags --libs libcurl)
|
|
|
|
CFLAGS = -Wall -Wextra -g $(CFLAGS_GLIB) $(CFLAGS_GEOCLUE) $(CFLAGS_JSONC) $(CFLAGS_CURL)
|
2024-02-22 17:11:06 -05:00
|
|
|
SRCS = src/main.c
|
|
|
|
|
|
|
|
phonetrackd := phonetrackd
|
|
|
|
|
|
|
|
$(phonetrackd): $(SRCS)
|
|
|
|
$(CC) $(CFLAGS) $(SRCS) -o $(phonetrackd)
|
|
|
|
|
|
|
|
all: $(phonetrackd)
|
|
|
|
|
|
|
|
install: $(phonetrackd)
|
|
|
|
cp $(phonetrackd) /usr/local/bin/
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(phonetrackd)
|