aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/uzlib/examples/tgunzip/makefile.vc
blob: 64dd2e6a00814f71799d6685f37732cd7e0bda42 (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
##
## tgunzip  -  gzip decompressor example
##
## Visual C/C++ makefile (GNU Make)
##
## Copyright (c) 2003 by Joergen Ibsen / Jibz
## All Rights Reserved
##

target  = tgunzip.exe
objects = tgunzip.obj
libs    = ../../lib/tinf.lib

cflags  = /nologo /W3 /O1 /G6 /W3 /Gy /GF /I..\..\src
ldflags = /nologo /release /opt:ref /opt:icf

.PHONY: all clean

all: $(target)

$(target): $(objects)
	link $(ldflags) /out:$@ $^ $(libs)

%.obj : %.c
	cl $(cflags) -c $<

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