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 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3