File: makefile

package info (click to toggle)
geotranz 2.4.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 26,500 kB
  • ctags: 4,852
  • sloc: ansic: 31,846; java: 11,467; makefile: 870; xml: 64; sh: 5
file content (105 lines) | stat: -rwxr-xr-x 1,452 bytes parent folder | download | duplicates (2)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
####
# Compiler declarations
####

#Sun SPARCworks
#cc = cc
#CC = CC
#Gnu
cc = gcc
CC = g++

####
# Support declarations
####

DEBUG = -g

CFLAGS = $(DEBUG)

####
# Directories
####

ENGINEDIR = ../src
DTCCDIR = ../../dt_cc

####
# Libraries
####

LIB =  libengine.a

####
# Sources
####

SRCS = 	engine.c 

####
# Includes
####

INCLUDES = \
	-I$(ENGINEDIR) \
	-I$(DTCCDIR)/albers \
	-I$(DTCCDIR)/azeq \
	-I$(DTCCDIR)/bng \
	-I$(DTCCDIR)/bonne \
	-I$(DTCCDIR)/cassini \
	-I$(DTCCDIR)/cyleqa \
	-I$(DTCCDIR)/datum \
	-I$(DTCCDIR)/eckert4 \
	-I$(DTCCDIR)/eckert6 \
	-I$(DTCCDIR)/ellipse \
	-I$(DTCCDIR)/eqdcyl \
	-I$(DTCCDIR)/gars \
	-I$(DTCCDIR)/geocent \
	-I$(DTCCDIR)/geoid \
	-I$(DTCCDIR)/georef \
	-I$(DTCCDIR)/gnomonic \
	-I$(DTCCDIR)/grinten \
	-I$(DTCCDIR)/lambert_1 \
	-I$(DTCCDIR)/lambert_2 \
	-I$(DTCCDIR)/loccart \
	-I$(DTCCDIR)/mercator \
	-I$(DTCCDIR)/mgrs \
	-I$(DTCCDIR)/miller \
	-I$(DTCCDIR)/mollweid \
	-I$(DTCCDIR)/neys \
	-I$(DTCCDIR)/nzmg \
	-I$(DTCCDIR)/omerc \
	-I$(DTCCDIR)/orthogr \
	-I$(DTCCDIR)/polarst \
	-I$(DTCCDIR)/polycon \
	-I$(DTCCDIR)/sinusoid \
	-I$(DTCCDIR)/stereogr \
	-I$(DTCCDIR)/trcyleqa \
	-I$(DTCCDIR)/tranmerc \
	-I$(DTCCDIR)/ups \
	-I$(DTCCDIR)/usng \
	-I$(DTCCDIR)/utm 

####
# Suffix rules
####

.SUFFIXES: .c .o

.c.o:
	$(cc) -c $(CFLAGS) $(INCLUDES) $<

####
# Targets
####

all: $(LIB)

$(SRCS):
	ln -s $(ENGINEDIR)/$@ .

$(LIB):	 $(SRCS:.c=.o)
	ar -rv $(LIB) $(SRCS:.c=.o)

clean:	
	$(RM) *.c *.o *.a