~ubuntu-branches/ubuntu/raring/geotranz/raring

« back to all changes in this revision

Viewing changes to engine/redhat_linux/makefile

  • Committer: Bazaar Package Importer
  • Author(s): Roberto Lumbreras
  • Date: 2008-10-17 14:43:09 UTC
  • Revision ID: james.westby@ubuntu.com-20081017144309-jb7uzfi1y1lvez8j
Tags: upstream-2.4.2
ImportĀ upstreamĀ versionĀ 2.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
####
 
2
# Compiler declarations
 
3
####
 
4
 
 
5
#Sun SPARCworks
 
6
#cc = cc
 
7
#CC = CC
 
8
#Gnu
 
9
cc = gcc
 
10
CC = g++
 
11
 
 
12
####
 
13
# Support declarations
 
14
####
 
15
 
 
16
DEBUG = -g
 
17
 
 
18
CFLAGS = $(DEBUG)
 
19
 
 
20
####
 
21
# Directories
 
22
####
 
23
 
 
24
ENGINEDIR = ../src
 
25
DTCCDIR = ../../dt_cc
 
26
 
 
27
####
 
28
# Libraries
 
29
####
 
30
 
 
31
LIB =  libengine.a
 
32
 
 
33
####
 
34
# Sources
 
35
####
 
36
 
 
37
SRCS =  engine.c 
 
38
 
 
39
####
 
40
# Includes
 
41
####
 
42
 
 
43
INCLUDES = \
 
44
        -I$(ENGINEDIR) \
 
45
        -I$(DTCCDIR)/albers \
 
46
        -I$(DTCCDIR)/azeq \
 
47
        -I$(DTCCDIR)/bng \
 
48
        -I$(DTCCDIR)/bonne \
 
49
        -I$(DTCCDIR)/cassini \
 
50
        -I$(DTCCDIR)/cyleqa \
 
51
        -I$(DTCCDIR)/datum \
 
52
        -I$(DTCCDIR)/eckert4 \
 
53
        -I$(DTCCDIR)/eckert6 \
 
54
        -I$(DTCCDIR)/ellipse \
 
55
        -I$(DTCCDIR)/eqdcyl \
 
56
        -I$(DTCCDIR)/gars \
 
57
        -I$(DTCCDIR)/geocent \
 
58
        -I$(DTCCDIR)/geoid \
 
59
        -I$(DTCCDIR)/georef \
 
60
        -I$(DTCCDIR)/gnomonic \
 
61
        -I$(DTCCDIR)/grinten \
 
62
        -I$(DTCCDIR)/lambert_1 \
 
63
        -I$(DTCCDIR)/lambert_2 \
 
64
        -I$(DTCCDIR)/loccart \
 
65
        -I$(DTCCDIR)/mercator \
 
66
        -I$(DTCCDIR)/mgrs \
 
67
        -I$(DTCCDIR)/miller \
 
68
        -I$(DTCCDIR)/mollweid \
 
69
        -I$(DTCCDIR)/neys \
 
70
        -I$(DTCCDIR)/nzmg \
 
71
        -I$(DTCCDIR)/omerc \
 
72
        -I$(DTCCDIR)/orthogr \
 
73
        -I$(DTCCDIR)/polarst \
 
74
        -I$(DTCCDIR)/polycon \
 
75
        -I$(DTCCDIR)/sinusoid \
 
76
        -I$(DTCCDIR)/stereogr \
 
77
        -I$(DTCCDIR)/trcyleqa \
 
78
        -I$(DTCCDIR)/tranmerc \
 
79
        -I$(DTCCDIR)/ups \
 
80
        -I$(DTCCDIR)/usng \
 
81
        -I$(DTCCDIR)/utm 
 
82
 
 
83
####
 
84
# Suffix rules
 
85
####
 
86
 
 
87
.SUFFIXES: .c .o
 
88
 
 
89
.c.o:
 
90
        $(cc) -c $(CFLAGS) $(INCLUDES) $<
 
91
 
 
92
####
 
93
# Targets
 
94
####
 
95
 
 
96
all: $(LIB)
 
97
 
 
98
$(SRCS):
 
99
        ln -s $(ENGINEDIR)/$@ .
 
100
 
 
101
$(LIB):  $(SRCS:.c=.o)
 
102
        ar -rv $(LIB) $(SRCS:.c=.o)
 
103
 
 
104
clean:  
 
105
        $(RM) *.c *.o *.a