1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 04:46:37 +02:00

Try to fix autoconnect (Tox/toxic#158)

This commit is contained in:
Ansa89
2014-06-25 09:13:57 +02:00
parent 43c1140aa2
commit 5b268a1a6a
2 changed files with 25 additions and 11 deletions

View File

@ -2,15 +2,21 @@ TOXIC_VERSION = 0.4.2
REV = $(shell git rev-list HEAD --count)
VERSION = $(TOXIC_VERSION)_r$(REV)
LIBS = libtoxcore ncursesw
CFLAGS = -std=gnu99 -pthread -Wimplicit-function-declaration -Wreturn-type -DTOXICVER="\"$(VERSION)\""
CFLAGS += -DHAVE_WIDECHAR -D_XOPEN_SOURCE_EXTENDED
CFLAGS += $(USER_CFLAGS)
LDFLAGS = $(USER_LDFLAGS)
CFG_DIR = ../cfg
SRC_DIR = ../src
DESTDIR = /usr/local
MISC_DIR = ../misc
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
DATADIR = $(PREFIX)/share/toxic
DATAFILES = $(MISC_DIR)/DHTnodes $(MISC_DIR)/toxic.config
LIBS = libtoxcore ncursesw
CFLAGS = -std=gnu99 -pthread -Wimplicit-function-declaration -Wreturn-type
CFLAGS += -DTOXICVER="\"$(VERSION)\"" -DHAVE_WIDECHAR -D_XOPEN_SOURCE_EXTENDED
CFLAGS += -DPACKAGE_DATADIR="\"$(DATADIR)\""
CFLAGS += $(USER_CFLAGS)
LDFLAGS = $(USER_LDFLAGS)
OBJ = chat.o chat_commands.o configdir.o dns.o execute.o
OBJ += file_senders.o friendlist.o global_commands.o groupchat.o line_info.o
@ -82,8 +88,10 @@ toxic: $(OBJ)
$(CC) $(CFLAGS) -o toxic $(OBJ) $(LDFLAGS)
install: toxic
mkdir -pv $(DESTDIR)/bin
install -m 0755 toxic $(DESTDIR)/bin
@mkdir -p $(DESTDIR)/$(BINDIR)
@mkdir -p $(DESTDIR)/$(DATADIR)
install -m 0755 toxic $(DESTDIR)/$(BINDIR)
install -m 0644 $(DATAFILES) $(PREFIX)/$(DATADIR)
%.o: $(SRC_DIR)/%.c
$(CC) $(CFLAGS) -o $*.o -c $(SRC_DIR)/$*.c