Skip to content

Commit

Permalink
Simplify makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Sep 1, 2009
1 parent 0ccc249 commit f920f19
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
all: binding.node

CFLAGS := $(shell node_g --cflags)
LIBFLAGS := $(shell node_g --libs)

binding.o: binding.cc Makefile
gcc ${CFLAGS} binding.cc -c -o binding.o

binding.node: binding.o Makefile
gcc -shared -o binding.node binding.o \
-rdynamic \
-Wl,-R/home/ryan/local/node/lib \
-lpq
gcc -shared -o binding.node binding.o -lpq

clean:
rm -f binding.o binding.node
Expand Down

0 comments on commit f920f19

Please sign in to comment.