aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/uzlib/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/monniaux/uzlib/src/makefile')
-rw-r--r--test/monniaux/uzlib/src/makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/monniaux/uzlib/src/makefile b/test/monniaux/uzlib/src/makefile
new file mode 100644
index 00000000..3ced616f
--- /dev/null
+++ b/test/monniaux/uzlib/src/makefile
@@ -0,0 +1,36 @@
+##
+## tinflib - tiny inflate library (inflate, gzip, zlib)
+##
+## GCC makefile (Linux, FreeBSD, BeOS and QNX)
+##
+## Copyright (c) 2003 by Joergen Ibsen / Jibz
+## All Rights Reserved
+##
+## http://www.ibsensoftware.com/
+##
+
+target = ../lib/libtinf.a
+objects = tinflate.o tinfgzip.o tinfzlib.o adler32.o crc32.o \
+ defl_static.o genlz77.o
+
+COPT = -Os
+CFLAGS = -Wall $(COPT)
+LDFLAGS = $(CFLAGS) -s
+
+.PHONY: all clean
+
+all: $(target)
+
+$(target): $(objects)
+ $(RM) $@
+ ar -frs $@ $^
+ ranlib $@
+
+%.o : %.c
+ $(CC) $(CFLAGS) -o $@ -c $<
+
+%.o : %.nas
+ nasm -o $@ -f elf -D_ELF_ -O3 -Inasm/ $<
+
+clean:
+ $(RM) $(objects) $(target)