diff options
author | GDR! <gdr@gdr.name> | 2016-12-07 14:56:26 +0100 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2016-12-07 14:56:26 +0100 |
commit | e093c65637385fe3b3db6ce5a830e5c9c2a00dd4 (patch) | |
tree | 933d17400354412b2ac0fe895884a76e6534d6e0 /Makefile | |
parent | ae6ff817c202fa6e41b6ec705152fbfee6c92cd1 (diff) |
Made tuntox build with TokTok/c-toxcore
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -1,10 +1,12 @@ | |||
1 | SOURCES = $(wildcard *.c) | 1 | SOURCES = $(wildcard *.c) |
2 | DEPS=libtoxcore | 2 | DEPS=libsodium toxcore |
3 | CC=gcc | 3 | CC=gcc |
4 | CFLAGS=-g #-std=c99 | 4 | CFLAGS=-g #-std=c99 |
5 | CFLAGS += $(shell pkg-config --cflags $(DEPS)) | 5 | CFLAGS += $(shell pkg-config --cflags $(DEPS)) |
6 | LDFLAGS=-g -pthread -lm -static -lrt | 6 | LDFLAGS=-g -pthread -lm -static -lrt |
7 | LDFLAGS += $(shell pkg-config --libs $(DEPS)) | 7 | LDFLAGS += $(shell pkg-config --static --libs $(DEPS)) |
8 | DSO_LDFLAGS=-g -pthread -lm -lrt | ||
9 | DSO_LDFLAGS += $(shell pkg-config --libs $(DEPS)) | ||
8 | OBJECTS=$(SOURCES:.c=.o) | 10 | OBJECTS=$(SOURCES:.c=.o) |
9 | INCLUDES = $(wildcard *.h) | 11 | INCLUDES = $(wildcard *.h) |
10 | 12 | ||
@@ -19,7 +21,10 @@ gitversion.c: gitversion.h | |||
19 | $(CC) $(CFLAGS) $< -c -o $@ | 21 | $(CC) $(CFLAGS) $< -c -o $@ |
20 | 22 | ||
21 | tuntox: $(OBJECTS) $(INCLUDES) | 23 | tuntox: $(OBJECTS) $(INCLUDES) |
22 | $(CC) -o $@ $(OBJECTS) -ltoxcore -lpthread $(LDFLAGS) /usr/local/lib/libsodium.a /usr/local/lib/libtoxcore.a | 24 | $(CC) -o $@ $(OBJECTS) -lpthread $(LDFLAGS) /usr/local/lib/libtoxmessenger.a /usr/local/lib/libtoxcore.a |
25 | |||
26 | tuntox_nostatic: $(OBJECTS) $(INCLUDES) | ||
27 | $(CC) -o $@ $(OBJECTS) -lpthread $(DSO_LDFLAGS) | ||
23 | 28 | ||
24 | cscope.out: | 29 | cscope.out: |
25 | cscope -bv ./*.[ch] | 30 | cscope -bv ./*.[ch] |