54 lines
1.8 KiB
Makefile
54 lines
1.8 KiB
Makefile
#
|
|
# 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
|