Skip to content

Commit a4952d7

Browse files
author
Vitaly Davydov
committed
Source files are moved into src subdirectory.
1 parent 1a782ae commit a4952d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+12
-9
lines changed

Makefile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ PGSPHERE_VERSION = 1.2.1
44
SRC_DIR = $(shell basename $(shell pwd))
55

66
MODULE_big = pg_sphere
7-
OBJS = sscan.o sparse.o sbuffer.o vector3d.o point.o \
8-
euler.o circle.o line.o ellipse.o polygon.o \
9-
path.o box.o output.o gq_cache.o gist.o key.o \
10-
gnomo.o healpix.o moc.o process_moc.o healpix_bare/healpix_bare.o \
11-
epochprop.o
7+
OBJS = src/sscan.o src/sparse.o src/sbuffer.o src/vector3d.o src/point.o \
8+
src/euler.o src/circle.o src/line.o src/ellipse.o src/polygon.o \
9+
src/path.o src/box.o src/output.o src/gq_cache.o src/gist.o src/key.o \
10+
src/gnomo.o src/healpix.o src/moc.o src/process_moc.o healpix_bare/healpix_bare.o \
11+
src/epochprop.o
12+
13+
PG_CFLAGS += -Isrc
14+
PG_CXXFLAGS += -Isrc
1215

1316
EXTENSION = pg_sphere
1417
RELEASE_SQL = $(EXTENSION)--$(PGSPHERE_VERSION).sql
@@ -208,16 +211,16 @@ endif
208211

209212
# end of local stuff
210213

211-
sscan.o : sparse.c
214+
src/sscan.o : src/sparse.c
212215

213-
sparse.c: sparse.y
216+
src/sparse.c: src/sparse.y
214217
ifdef YACC
215-
$(YACC) -d $(YFLAGS) -p sphere_yy -o sparse.c $<
218+
$(YACC) -d $(YFLAGS) -p sphere_yy -o $@ $<
216219
else
217220
@$(missing) bison $< $@
218221
endif
219222

220-
sscan.c : sscan.l
223+
src/sscan.c : src/sscan.l
221224
ifdef FLEX
222225
$(FLEX) $(FLEXFLAGS) -Psphere -o$@ $<
223226
else
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)