summaryrefslogtreecommitdiff
path: root/src/3rdparty/minilzo/Makefile
blob: 92eba72ea709ba7d5625c86e117a6d5fcff1b9d1 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# a very simple Makefile for miniLZO
#
# Copyright (C) 1996-2002 Markus F.X.J. Oberhumer
#

SOURCES = testmini.c minilzo.c

default all:
	@echo "Please choose one of the following targets:"
	@echo "    gcc gcc-i386 gcc-rs6000"
	@echo "    visualc watcomc watcomc16"
	@echo "    hpux hpux9"


#
# gcc
#
gcc:
	gcc -Wall -O2 -s -o testmini $(SOURCES)

gcc-i386:
	gcc -Wall -O2 -fomit-frame-pointer -fno-strength-reduce -s -o testmini $(SOURCES)

gcc-rs6000:
	gcc -Wall -O2 -fno-schedule-insns -fno-schedule-insns2 -o testmini $(SOURCES)


#
# Windows
#
visualc:
	cl -nologo -ML -W3 -O2 -GF $(SOURCES)

watcomc:
	wcl386 -zq -mf -5r -zc -wx -oneatx $(SOURCES)

watcomc16:
	wcl -zq -ml -5 -zc -wx -oneatx $(SOURCES)


#
# UNIX
#

hpux:
	cc -Ae -o testmini $(SOURCES)

hpux9:
	cc -Aa -D_HPUX_SOURCE -o testmini $(SOURCES)


#
# other targets
#
clean:
	rm -f testmini testmini.exe *.err *.o *.obj core