blob: 591c6498f744bb70d970d73fb2022efc37ceba17 (
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
|
#
# EasyBMP Cross-Platform Windows Bitmap Library
#
# Author: Paul Macklin
# email: macklin01@users.sourceforge.net
# support: http://easybmp.sourceforge.net
# file: makefile
# date added: 04-22-2006
# date modified: 12-01-2006
# version: 1.06
#
# License: BSD (revised/modified)
# Copyright: 2005-6 by the EasyBMP Project
#
# description: Sample makefile for compiling with
# the EasyBMP library. This compiles
# the EasyBMPsample.cpp program.
#
CC = g++
# this line gives compiler optimizations that are geared towards g++ and Pentium4
# computers. Comment it out if you don't have a Pentium 4 (or Athlon XP) or up
# CFLAGS = -O3 -Wno-deprecated -mcpu=pentium4 -march=pentium4 \
# -mfpmath=sse -msse -mmmx -msse2 -pipe -fomit-frame-pointer -s
# Uncomment these two lines to use with any Pentium with MMX or up.
# CFLAGS = -Wno-deprecated -mcpu=pentium -march=pentium -pipe \
# -fomit-frame-pointer -mmmx -funroll-all-loops -s
# Uncomment these lines for some "safe" optimization flags
CFLAGS = -O3 -pipe -fomit-frame-pointer -funroll-all-loops -s
EasyBMPTest: EasyBMP.o EasyBMPsample.o
g++ $(CFLAGS) EasyBMP.o EasyBMPsample.o -o EasyBMPtest
EasyBMP.o: ../EasyBMP.cpp ../EasyBMP*.h
cp ../EasyBMP*.h .
cp ../EasyBMP.cpp .
g++ $(CFLAGS) -c EasyBMP.cpp
EasyBMPsample.o: EasyBMPsample.cpp
g++ -c EasyBMPsample.cpp
clean:
rm EasyBMP*.h
rm EasyBMP.cpp
rm EasyBMPtest*
rm EasyBMPoutput*.bmp
rm -f *.o
|