Permalink
Browse files

temporary commit

  • Loading branch information...
kokizzu committed Jul 11, 2010
1 parent 04fbab6 commit 2c4a2abf50df2ec6c60073596c2258dd7c6048d9
Showing with 799 additions and 566 deletions.
  1. +9 −24 Makefile
  2. +790 −542 plv8.cc
View
@@ -1,24 +1,9 @@
-
-PGDIR = ../postgresql
-V8DIR = ../v8-1.2
-
-PROG = plv8
-OBJS = plv8.o
-CC = g++
-#CFLAGS = -g -Wall
-CFLAGS = -O2 -Wall -fPIC
-INCS = -I$(PGDIR)/src/include -I$(V8DIR)/include
-LIBS = -lv8
-
-all: $(PROG)
-
-$(PROG):$(OBJS)
- $(CC) $(LIBS) -shared -o $@.so $^
-# $(V8DIR)/libv8_g.a
-
-.c.o:
- $(CC) $(CFLAGS) $(INCS) -o $@ -c $<
-
-clean:
- rm -rf $(OBJS)
- rm -rf $(PROG).so
+all:
+ g++ -O2 -Wall -fPIC -I ../postgres/pgsql/src/include -I ../v8/include -o plv8.o -c plv8.cc
+ g++ -lv8 -shared -o plv8.so plv8.o
+clean:
+ rm plv8.so plv8.o
+distclean: clean
+realclean: clean
+
+.PHONY: all clean distclean realclean
Oops, something went wrong.

0 comments on commit 2c4a2ab

Please sign in to comment.