Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F116128
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/Makefile b/Makefile
index d2682c9..5691088 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,11 @@
CFLAGS ?= -g
-HEADER_FILES = src
-SOURCE_FILES = src/captcha.c
+HEADERS = src/colors.h src/font.h
-OBJECT_FILES = $(SOURCE_FILES:.c=.o)
-
-priv/captcha: clean priv $(OBJECT_FILES)
+priv/captcha: priv src/captcha.c $(HEADERS)
mkdir -p priv
- $(CC) $(CFLAGS) -I $(HEADER_FILES) -o $@ $(LDFLAGS) $(OBJECT_FILES) $(LDLIBS)
+ $(CC) -std=c99 $(CFLAGS) -o priv/captcha src/captcha.c $(LDFLAGS) $(LDLIBS)
+.PHONY: clean
clean:
- rm -f priv/captcha $(OBJECT_FILES) $(BEAM_FILES)
+ rm -f priv/captcha $(BEAM_FILES)
diff --git a/src/captcha.c b/src/captcha.c
index e643be9..3ca8a18 100644
--- a/src/captcha.c
+++ b/src/captcha.c
@@ -8,8 +8,9 @@ void makegif(unsigned char im[70*200], unsigned char gif[gifsize], int style);
#include <fcntl.h>
#include <string.h>
#include <time.h>
-#include "font.h"
-#include "colors.h"
+
+#include "./font.h"
+#include "./colors.h"
static int8_t *lt[];
const int gifsize=17646;
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 30, 1:08 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41431
Default Alt Text
(1 KB)
Attached To
Mode
R13 elixir-captcha
Attached
Detach File
Event Timeline
Log In to Comment