Initial setup
This commit is contained in:
parent
bc1d06ee17
commit
b779ee7a55
17
Makefile
Normal file
17
Makefile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
|
CFLAGS = -Wall -Wextra -g $(CFLAGS_GEOCLUE) -ljson-c -lcurl -lgeoclue-2
|
||||||
|
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)
|
10
src/main.c
Normal file
10
src/main.c
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#include <json-c/json.h>
|
||||||
|
#include <curl/curl.h>
|
||||||
|
#include <geoclue.h>
|
||||||
|
|
||||||
|
int main(int argc, const char *argv[]) {
|
||||||
|
(void) argc;
|
||||||
|
(void) argv;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user