From a1d2b63e6af32685f5828c302a0d3edeeb48090f Mon Sep 17 00:00:00 2001 From: z3bra Date: Mon, 31 Oct 2016 21:25:10 +0100 Subject: Compile against local toxcore submodule --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index a8b1656..d39e26c 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,13 @@ include config.mk .POSIX: .SUFFIXES: .c .o +TOXSRC = $(shell find toxcore/toxcore toxcore/toxav toxcore/toxencryptsave -name '*.c') + HDR = arg.h config.h readpassphrase.h util.h LIB = \ eprintf.o \ - readpassphrase.o + readpassphrase.o \ + $(TOXSRC:.c=.o) SRC = \ ratox.c @@ -21,6 +24,8 @@ binlib: util.a bin: $(BIN) +$(BIN): util.a $(OBJ) + $(OBJ): $(HDR) config.mk config.h: -- cgit v1.2.3