Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9e478bc2b6
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (43 sloc) 1.323 kb
SHELL = /bin/sh
VPATH = @srcdir@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin
infodir = $(prefix)/info
libdir = $(prefix)/lib/gnudl
mandir = $(prefix)/man/man1
CFLAGS = $(CPPFLAGS) @CFLAGS@
ifeq ($(shell uname),Linux)
ARCH = linux
LDFLAGS = $(LDFLAGS_COMMON) -shared
else
ARCH = macosx
LDFLAGS = $(LDFLAGS_COMMON) -dynamic -bundle -undefined suppress -flat_namespace
endif
CC = @CC@
CPPFLAGS = @CPPFLAGS@
LIBS = @LIBS@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
OUTPUTFILES := $(patsubst %_drv.c, ../priv/%_drv.so, $(wildcard *_drv.c))
DEFS = -DHAVE_CONFIG_H
ERLDIR = @ERLDIR@
all: $(OUTPUTFILES)
debug:
$(MAKE) DEBUG=-DDEBUG
.SUFFIXES: .o .c .h
../priv/%_drv.so: %_drv.o
mkdir -p ../priv
$(CC) $(CFLAGS) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $^ /Users/mrhyde/Code/redis/client-libraries/credis-read-only/credis.o @LIBEI@
.c.o:
$(CC) $(CFLAGS) $(DEFS) $(DEBUG) -c $<
clean:
rm -rf *.o *.a $(OUTPUTFILES)
install:
install -d $(ERLDIR)/lib/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/priv
cp -r `pwd`/../priv $(ERLDIR)/lib/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/
package:
install -d `pwd`/../.pkgtmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/priv
cp -r `pwd`/../priv/* `pwd`/../.pkgtmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/priv
Jump to Line
Something went wrong with that request. Please try again.