~ubuntu-branches/ubuntu/lucid/agg/lucid-proposed

« back to all changes in this revision

Viewing changes to examples/linux_sdl/trans_polar/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2006-10-22 15:16:27 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20061022151627-wx9inil9o7z40xwc
Tags: 2.4+20060719-3
upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
include ../../../Makefile.in.$(shell uname).SDL
2
 
 
3
 
PROGNAME=trans_polar
4
 
OUTNAME=$(PROGNAME)
5
 
PLATFORM=sdl
6
 
 
7
 
CXXFLAGS= $(AGGCXXFLAGS) -I../../../include \
8
 
-L../../../src \
9
 
$(PIXFMT)
10
 
 
11
 
LIBS = $(AGGLIBS) -lm 
12
 
 
13
 
SRC=\
14
 
../../$(PROGNAME).cpp \
15
 
../../../src/platform/$(PLATFORM)/agg_platform_support.cpp
16
 
 
17
 
OBJ= $(SRC:.cpp=.o)
18
 
 
19
 
$(PROGNAME):    $(OBJ) 
20
 
        $(CXX) $(CXXFLAGS) $^ -o $(OUTNAME) $(LIBS)
21
 
 
22
 
clean:
23
 
        rm -f $(PROGNAME)
24
 
        rm -f ../../$(PROGNAME).o
25
 
        rm -f ../../../src/platform/$(PLATFORM)/agg_platform_support.o
26
 
        rm -rf SunWS_cache
27
 
        rm -rf ../../SunWS_cache
28
 
        rm -rf ../../../src/platform/$(PLATFORM)/SunWS_cache
29
 
        
30
 
 
31
 
%.o:    %.cpp
32
 
        @echo \< $*.cpp \>
33
 
        $(CXX) -c $(CXXFLAGS) $*.cpp -o $@