2024-02-22 17:11:06 -05:00
|
|
|
CC = clang
|
|
|
|
CFLAGS_GEOCLUE = -I/usr/include/libgeoclue-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread
|
2024-02-22 21:43:10 -05:00
|
|
|
CFLAGS = -Wall -Wextra -g $(CFLAGS_GEOCLUE) -ljson-c -lcurl -lgeoclue-2 -lglib-2.0 -lgobject-2.0
|
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)
|