aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/uzlib/examples/tgunzip/makefile
blob: bcc908153b0746aab9b42719f14f64575446fc69 (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
##
## tgunzip  -  gzip decompressor example
##
## GCC makefile (Linux, FreeBSD, BeOS and QNX)
##
## Copyright (c) 2003 by Joergen Ibsen / Jibz
## All Rights Reserved
##
## http://www.ibsensoftware.com/
##

target  = tgunzip
objects = tgunzip.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)