phonetrack-linux/Makefile
2024-06-27 19:39:44 -04:00

21 lines
554 B
Makefile

CC = clang
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)
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)