File: Makefile

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (46 lines) | stat: -rw-r--r-- 1,175 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
MODULE_TOPDIR = ../../..

LIB_NAME = $(RTREE_LIBNAME)

LIB_OBJS = card.o \
	gammavol.o \
	index.o \
	node.o \
	rect.o \
	split_q.o 

include $(MODULE_TOPDIR)/include/Make/Lib.make

RTLINC = $(ARCH_INCDIR)/rtree/
RTLINC_OLD = $(ARCH_DISTDIR)/include/rtree/

default: $(RTLINC)/card.h $(RTLINC)/index.h $(RTLINC)/split_l.h $(RTLINC)/split_q.h \
	$(ARCH_INCDIR)/rtree.h lib

$(RTLINC)/card.h: card.h
	$(MKDIR) $(RTLINC)
	$(MKDIR) $(RTLINC_OLD)
	$(INSTALL) -m 644 card.h $(RTLINC)/card.h
	$(INSTALL) -m 644 card.h $(RTLINC_OLD)/card.h

$(RTLINC)/index.h: index.h
	$(INSTALL) -m 644 index.h $(RTLINC)/index.h
	$(INSTALL) -m 644 index.h $(RTLINC_OLD)/index.h

$(RTLINC)/split_l.h: split_l.h
	$(INSTALL) -m 644 split_l.h $(RTLINC)/split_l.h
	$(INSTALL) -m 644 split_l.h $(RTLINC_OLD)/split_l.h

# not used
$(RTLINC)/split_q.h: split_q.h
	$(INSTALL) -m 644 split_q.h $(RTLINC)/split_q.h
	$(INSTALL) -m 644 split_q.h $(RTLINC_OLD)/split_q.h

$(ARCH_INCDIR)/rtree.h: rtree.h
	$(INSTALL) -m 644 rtree.h $(ARCH_INCDIR)/rtree.h
	$(INSTALL) -m 644 rtree.h $(ARCH_DISTDIR)/include/rtree.h

$(OBJDIR)/test: test.c
	$(CC) $(LDFLAGS) $(INC) -o $@ test.c $(RTREELIB) -lm
	cd $(OBJDIR); ./test