diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,6 +1,14 @@ | |||
1 | |||
2 | CFLAGS+=-Llibs/ | ||
3 | CFLAGS+=-Wl,-rpath=libs/ | ||
4 | |||
5 | CFLAGS+=-I../libfile_reader | ||
6 | CFLAGS+=-L../libfile_reader | ||
7 | CFLAGS+=-Wl,-rpath=../libfile_reader | ||
8 | |||
1 | all: | 9 | all: |
2 | $(CC) -Wall -g -lgd -o captcha -Wl,-rpath=libs/ -L../ -l:libfile_reader.so captcha.c | 10 | $(CC) -Wall -g -lgd -o captcha $(CFLAGS) -L../ -l:libfile_reader.so captcha.c |
3 | $(CC) -Wall -g -shared -fPIC -lgd -L../ -l:libfile_reader.so -o captcha.so captcha.c | 11 | $(CC) -Wall -g -shared -fPIC -lgd -o captcha.so $(CFLAGS) -L../ -l:libfile_reader.so captcha.c |
4 | #$(CC) -Wall -g -lgd -o captcha ../file_reader/file_reader.a captcha.c | 12 | #$(CC) -Wall -g -lgd -o captcha ../file_reader/file_reader.a captcha.c |
5 | 13 | ||
6 | libs: | 14 | libs: |