diff options
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | config.mk | 8 | ||||
-rw-r--r-- | ratox.c | 6 |
3 files changed, 7 insertions, 14 deletions
@@ -3,13 +3,10 @@ include config.mk .POSIX: .SUFFIXES: .c .o -TOXSRC = $(shell find toxcore/toxcore toxcore/toxav toxcore/toxencryptsave -name '*.c') - HDR = arg.h config.h nodes.h readpassphrase.h util.h LIB = \ eprintf.o \ - readpassphrase.o \ - $(TOXSRC:.c=.o) + readpassphrase.o SRC = \ ratox.c @@ -24,8 +21,6 @@ binlib: util.a bin: $(BIN) -$(BIN): util.a $(OBJ) - $(OBJ): $(HDR) config.mk config.h: @@ -5,10 +5,8 @@ VERSION = 0.2.1 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man -TOX_CFLAGS = -I./toxcore/toxcore -I./toxcore/toxav -I./toxcore/toxencryptsave -I/usr/include/opus - CC = cc LD = $(CC) -CPPFLAGS = -DVERSION=\"${VERSION}\" $(TOX_CFLAGS) -CFLAGS = -g -Wall -Wunused $(CPPFLAGS) -LDFLAGS = -g -lopus -lvpx -lpthread -lsodium +CPPFLAGS = -DVERSION=\"${VERSION}\" +CFLAGS = -g -I/usr/local/include -Wall -Wunused $(CPPFLAGS) +LDFLAGS = -g -L/usr/local/lib -ltoxcore -ltoxav -ltoxencryptsave @@ -19,9 +19,9 @@ #include <time.h> #include <unistd.h> -#include "tox.h" -#include "toxav.h" -#include "toxencryptsave.h" +#include <tox/tox.h> +#include <tox/toxav.h> +#include <tox/toxencryptsave.h> #include "arg.h" #include "queue.h" |