From fdb57352bf64d91371b222997d1c6a2b72fa3b38 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 5 May 2016 16:20:01 +0200 Subject: fixed missing dependency --- Makefile | 12 ++++++++++-- captcha.h | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7e71228..7b24b5a 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,14 @@ + +CFLAGS+=-Llibs/ +CFLAGS+=-Wl,-rpath=libs/ + +CFLAGS+=-I../libfile_reader +CFLAGS+=-L../libfile_reader +CFLAGS+=-Wl,-rpath=../libfile_reader + all: - $(CC) -Wall -g -lgd -o captcha -Wl,-rpath=libs/ -L../ -l:libfile_reader.so captcha.c - $(CC) -Wall -g -shared -fPIC -lgd -L../ -l:libfile_reader.so -o captcha.so captcha.c + $(CC) -Wall -g -lgd -o captcha $(CFLAGS) -L../ -l:libfile_reader.so captcha.c + $(CC) -Wall -g -shared -fPIC -lgd -o captcha.so $(CFLAGS) -L../ -l:libfile_reader.so captcha.c #$(CC) -Wall -g -lgd -o captcha ../file_reader/file_reader.a captcha.c libs: diff --git a/captcha.h b/captcha.h index 2aa6475..4228625 100644 --- a/captcha.h +++ b/captcha.h @@ -9,7 +9,7 @@ #include #include "gd.h" -#include "../file_reader/file_reader.h" +#include "file_reader.h" int captcha_print(char* text); -- cgit v1.2.3