mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 01:46:37 +02:00
Wide characters support and removed unused files
This commit is contained in:
@ -2,12 +2,15 @@ TOXIC_VERSION = 0.4.2
|
||||
REV = $(shell git rev-list HEAD --count)
|
||||
VERSION = $(TOXIC_VERSION)_r$(REV)
|
||||
|
||||
LIBS = libtoxcore ncurses
|
||||
LIBS = libtoxcore ncursesw
|
||||
|
||||
CFLAGS ?= $(USER_CFLAGS) -DTOXICVER="\"$(VERSION)\"" -std=gnu99 -pthread
|
||||
LDFLAGS ?= $(USER_LDFLAGS)
|
||||
CFLAGS = -std=gnu99 -pthread -DTOXICVER="\"$(VERSION)\""
|
||||
CFLAGS += -DHAVE_WIDECHAR -D_XOPEN_SOURCE_EXTENDED
|
||||
CFLAGS += $(USER_CFLAGS)
|
||||
LDFLAGS = $(USER_LDFLAGS)
|
||||
CFG_DIR = ../cfg
|
||||
SRC_DIR = ../src
|
||||
DESTDIR ?= /usr/local
|
||||
DESTDIR = /usr/local
|
||||
|
||||
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
|
||||
@ -21,31 +24,25 @@ AUDIO_OBJ = device.o audio_call.o
|
||||
# Check on wich system we are running
|
||||
UNAME_S = $(shell uname -s)
|
||||
ifeq ($(UNAME_S), Linux)
|
||||
CFLAGS +=
|
||||
LDFLAGS += -ldl -lresolv
|
||||
-include $(CFG_DIR)/Linux.mk
|
||||
endif
|
||||
ifeq ($(UNAME_S), Darwin)
|
||||
CFLAGS +=
|
||||
LDFLAGS +=
|
||||
-include $(CFG_DIR)/Darwin.mk
|
||||
endif
|
||||
ifeq ($(UNAME_S), Solaris)
|
||||
CFLAGS +=
|
||||
LDFLAGS +=
|
||||
-include $(CFG_DIR)/Solaris.mk
|
||||
endif
|
||||
|
||||
# Check on which platform we are running
|
||||
UNAME_M = $(shell uname -m)
|
||||
ifeq ($(UNAME_M), x86_64)
|
||||
CFLAGS +=
|
||||
LDFLAGS +=
|
||||
-include $(CFG_DIR)/x86_64.mk
|
||||
endif
|
||||
ifneq ($(filter %86, $(UNAME_M)),)
|
||||
CFLAGS +=
|
||||
LDFLAGS +=
|
||||
-include $(CFG_DIR)/x86.mk
|
||||
endif
|
||||
ifneq ($(filter arm%, $(UNAME_M)),)
|
||||
CFLAGS +=
|
||||
LDFLAGS +=
|
||||
-include $(CFG_DIR)/arm.mk
|
||||
endif
|
||||
|
||||
# Check if we can build audio
|
||||
|
Reference in New Issue
Block a user