aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/uzlib/examples/tgzip/makefile
blob: fa064157a0d08793497c21298e032968d9acdb42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##
## tgzip  -  gzip compressor example
##
## GCC makefile (Linux, FreeBSD, BeOS and QNX)
##
## Copyright (c) 2003 by Joergen Ibsen / Jibz
## Copyright (c) 2014 by Paul Sokolovsky
##
## http://www.ibsensoftware.com/
##

target  = tgzip
objects = tgzip.o
libs    = ../../lib/libtinf.a

COPT    = -Os
CFLAGS  = -Wall -I../../src $(COPT)
LDFLAGS = $(CFLAGS)

.PHONY: all clean

all: $(target)

$(target): $(objects) $(libs)
	$(CC) $(LDFLAGS) -o $@ $^ $(libs)

%.o : %.c
	$(CC) $(CFLAGS) -c $<

clean:
	$(RM) $(objects) $(target)