Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (47 sloc) 1.638 kb
# %CopyrightBegin%
# Copyright Ericsson AB 2006-2009. All Rights Reserved.
# The contents of this file are subject to the Erlang Public License,
# Version 1.1, (the "License"); you may not use this file except in
# compliance with the License. You should have received a copy of the
# Erlang Public License along with this software. If not, it can be
# retrieved online at
# Software distributed under the License is distributed on an "AS IS"
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
# the License for the specific language governing rights and limitations
# under the License.
# %CopyrightEnd%
include $(ERL_TOP)/make/
include $(ERL_TOP)/make/$(TARGET)/
EI_ROOT = $(ERL_TOP)/lib/erl_interface
EI_INCLUDE = -I$(EI_ROOT)/include -I$(ERL_TOP)/erts/emulator/beam
EI_LIB = -L$(EI_ROOT)/obj/$(TARGET) -lei
PQ_LIB = -lpq
OUR_C_FLAGS = -g -Wall -fpic $(EI_INCLUDE)
TARGETS = pg_sync.beam pg_async.beam \ next_perm.beam
all: $(TARGETS)
rm -f $(TARGETS) *.o
rm -f pg_encode2.beam pg_async2.beam
rm -f core erl_crash.dump
rm -f *~
pg_async2.o pg_encode2.o: pg_encode2.h
pg_sync.o pg_async.o pg_encode.o: pg_encode.h pg_encode2.o pg_encode.o pg_async2.o
$(CC) $(CFLAGS) pg_encode2.o -shared $< $(EI_LIB) $(PQ_LIB) -o $@
$(CXX) $(CXXFLAGS) $< -shared -o $@ %.o
$(CC) $(CFLAGS) pg_encode.o -shared $< $(EI_LIB) $(PQ_LIB) -o $@
$(CXX) $(CXXFLAGS) $< -o $@
Jump to Line
Something went wrong with that request. Please try again.