summaryrefslogtreecommitdiff
path: root/tests/make_png/makefile
diff options
context:
space:
mode:
authorKushal K S V S <kkushal32@gmail.com>2017-07-07 02:23:45 +0530
committerKushal K S V S <kkushal32@gmail.com>2017-07-07 02:23:45 +0530
commit4f5f083dc68dc6f0896e8da529590e88101c3c19 (patch)
tree712aa30f78cb71b26aac34523c955ec67d3dddb1 /tests/make_png/makefile
parent49c0d825023c69e9731a76bf8b4256dc27a1301d (diff)
downloadfreetype2-4f5f083dc68dc6f0896e8da529590e88101c3c19.tar.gz
Put it all in tests folderksvsk_test
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
+
+