Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
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

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)

Event Timeline