Skip to content

Commit 001cee8

Browse files
authored
Merge pull request #14 from vitcpp/create-src-subdir
Source files are moved into src subdirectory.
2 parents 2a51384 + 9b1153c commit 001cee8

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
-12
lines changed

Diff for: Makefile

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ 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 \
10+
src/key.o src/gnomo.o src/healpix.o src/moc.o src/process_moc.o \
11+
healpix_bare/healpix_bare.o src/epochprop.o
1212

1313
EXTENSION = pg_sphere
1414
RELEASE_SQL = $(EXTENSION)--$(PGSPHERE_VERSION).sql
@@ -208,16 +208,16 @@ endif
208208

209209
# end of local stuff
210210

211-
sscan.o : sparse.c
211+
src/sscan.o : src/sparse.c
212212

213-
sparse.c: sparse.y
213+
src/sparse.c: src/sparse.y
214214
ifdef YACC
215-
$(YACC) -d $(YFLAGS) -p sphere_yy -o sparse.c $<
215+
$(YACC) -d $(YFLAGS) -p sphere_yy -o $@ $<
216216
else
217217
@$(missing) bison $< $@
218218
endif
219219

220-
sscan.c : sscan.l
220+
src/sscan.c : src/sscan.l
221221
ifdef FLEX
222222
$(FLEX) $(FLEXFLAGS) -Psphere -o$@ $<
223223
else

Diff for: box.c renamed to src/box.c

File renamed without changes.

Diff for: box.h renamed to src/box.h

File renamed without changes.

Diff for: circle.c renamed to src/circle.c

File renamed without changes.

Diff for: circle.h renamed to src/circle.h

File renamed without changes.

Diff for: ellipse.c renamed to src/ellipse.c

File renamed without changes.

Diff for: ellipse.h renamed to src/ellipse.h

File renamed without changes.

Diff for: epochprop.c renamed to src/epochprop.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Transformation: Rigorous Treatment'; cf.
88
*/
99

1010
#include <math.h>
11-
#include <pgs_util.h>
11+
#include "pgs_util.h"
1212

1313
#include "point.h"
1414
#include "epochprop.h"

Diff for: epochprop.h renamed to src/epochprop.h

File renamed without changes.

Diff for: euler.c renamed to src/euler.c

File renamed without changes.

Diff for: euler.h renamed to src/euler.h

File renamed without changes.

Diff for: gist.c renamed to src/gist.c

File renamed without changes.

Diff for: gist.h renamed to src/gist.h

File renamed without changes.

Diff for: gnomo.c renamed to src/gnomo.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#include <postgres.h>
22
#include <fmgr.h>
33

4-
#include <gnomo.h>
5-
#include <point.h> /* SPoint from pgsphere */
4+
#include "gnomo.h"
5+
#include "point.h" /* SPoint from pgsphere */
66

77
#include <math.h>
88

Diff for: gnomo.h renamed to src/gnomo.h

File renamed without changes.

Diff for: gq_cache.c renamed to src/gq_cache.c

File renamed without changes.

Diff for: healpix.c renamed to src/healpix.c

File renamed without changes.

Diff for: key.c renamed to src/key.c

File renamed without changes.

Diff for: key.h renamed to src/key.h

File renamed without changes.

Diff for: line.c renamed to src/line.c

File renamed without changes.

Diff for: line.h renamed to src/line.h

File renamed without changes.

Diff for: moc.c renamed to src/moc.c

File renamed without changes.

Diff for: output.c renamed to src/output.c

File renamed without changes.

Diff for: path.c renamed to src/path.c

File renamed without changes.

Diff for: path.h renamed to src/path.h

File renamed without changes.

Diff for: pg_sphere.h renamed to src/pg_sphere.h

File renamed without changes.

Diff for: pgs_chealpix.h renamed to src/pgs_chealpix.h

File renamed without changes.

Diff for: pgs_healpix.h renamed to src/pgs_healpix.h

File renamed without changes.

Diff for: pgs_moc.h renamed to src/pgs_moc.h

File renamed without changes.
File renamed without changes.

Diff for: pgs_util.h renamed to src/pgs_util.h

File renamed without changes.

Diff for: point.c renamed to src/point.c

File renamed without changes.

Diff for: point.h renamed to src/point.h

File renamed without changes.

Diff for: polygon.c renamed to src/polygon.c

File renamed without changes.

Diff for: polygon.h renamed to src/polygon.h

File renamed without changes.

Diff for: process_moc.cpp renamed to src/process_moc.cpp

File renamed without changes.

Diff for: sbuffer.c renamed to src/sbuffer.c

File renamed without changes.

Diff for: sbuffer.h renamed to src/sbuffer.h

File renamed without changes.

Diff for: sparse.c renamed to src/sparse.c

File renamed without changes.

Diff for: sparse.h renamed to src/sparse.h

File renamed without changes.

Diff for: sparse.y renamed to src/sparse.y

File renamed without changes.

Diff for: sscan.c renamed to src/sscan.c

File renamed without changes.

Diff for: sscan.l renamed to src/sscan.l

File renamed without changes.

Diff for: types.h renamed to src/types.h

File renamed without changes.

Diff for: vector3d.c renamed to src/vector3d.c

File renamed without changes.

Diff for: vector3d.h renamed to src/vector3d.h

File renamed without changes.

0 commit comments

Comments
 (0)