Permalink
Browse files

The Makefile can find the objects list itself

  • Loading branch information...
dvarrazzo committed Apr 21, 2011
1 parent 6f7757b commit ba041855420e08f8a5db1fdc787a42e48cae551f
Showing with 4 additions and 5 deletions.
  1. +4 −5 Makefile
View
@@ -33,12 +33,11 @@ PG91 = $(shell $(PG_CONFIG) --version | grep -qE " 8\.| 9\.0" && echo pre91 || e
EXTENSION=pgmp
MODULEDIR=pgmp
MODULE_big = pgmp
-OBJS = src/pgmp.o src/pgmp_utils.o \
- src/pmpz.o src/pmpz_io.o src/pmpz_arith.o src/pmpz_agg.o \
- src/pmpz_roots.o src/pmpz_theor.o src/pmpz_bits.o src/pmpz_rand.o \
- src/pmpq.o src/pmpq_io.o src/pmpq_arith.o src/pmpq_agg.o
-SRCFILES = $(wildcard src/*.[ch])
+SRC_C = $(wildcard src/*.c)
+SRC_H = $(wildcard src/*.h)
+SRCFILES = $(SRC_C) $(SRC_H)
+OBJS = $(patsubst %.c,%.o,$(SRC_C))
TESTFILES = $(wildcard test/sql/*.sql) $(wildcard test/expected/*.out)
DOCS = $(wildcard docs/*.rst) docs/conf.py docs/Makefile docs/_static/pgmp.css

0 comments on commit ba04185

Please sign in to comment.