summaryrefslogtreecommitdiff
path: root/tests/make_png/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/make_png/makefile')
-rw-r--r--tests/make_png/makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/make_png/makefile b/tests/make_png/makefile
new file mode 100644
index 000000000..691a6fd1b
--- /dev/null
+++ b/tests/make_png/makefile
@@ -0,0 +1,28 @@
+# Define required macros here
+
+SHELL = /bin/sh
+
+SRC_HASH = hash_to_file.c bitmap.c murmur3.c
+SRC_PNG = make_png.c bitmap.c murmur3.c
+OBJS = $(src:.c=.o)
+
+CFLAGS = -Wall -g
+CC = gcc
+INCLUDE = -I /usr/local/include/freetype2/
+LIBS = -lfreetype -lpng
+
+DPI = 72
+
+all: png hash
+
+png:$(SRC_PNG)
+ $(CC) $(CFLAGS) $(INCLUDE) -DDPI=$(DPI) -o $@ $(SRC_PNG) $(OBJS) $(LIBS)
+
+hash:$(SRC_HASH)
+ $(CC) $(CFLAGS) $(INCLUDE) -DDPI=$(DPI) -o $@ $(SRC_HASH) $(OBJS) $(LIBS)
+
+.PHONY: clean
+clean:
+ -rm -f *.o
+
+