summaryrefslogtreecommitdiff
path: root/Makefile
blob: 7b24b5a2e42153764d5757df527a4cf76cc33f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

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    $(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:
	#$(CC) -Wall -g -shared -fPIC -lgd -Wl,-rpath=../file/reader/ -L../file/reader/ -l:file_reader.so -o captcha.so captcha.c
	#$(CC) -Wall -g -lgd -Wl,-rpath=../file/reader/ -L../file/reader/ -o captcha ../file/reader/file_reader.a captcha.c 

strip:
	strip -s *.so
..