1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
# Edit PIKE_SRC_DIR (the source directory of Pike, for includes)
# maybe PIKE_BUILD_DIR, and PIKE_LIB_DIR
# If you run Roxen from a binary distribution, you'll have to download the
# source and at least run "./configure" under pike/src. This will create
# machine.h, which is needed.
# Typical directories for Roxen 1.3.122
#PIKE_SRC_DIR=/usr/local/src/roxen_1.3.121/pike/0.6/src
#PIKE_BUILD_DIR=/usr/local/src/roxen_1.3.121/build/linux/pike/0.6/src
#PIKE_LIB_DIR=/usr/local/roxen/server/lib/pike
# Typical directories for Roxen 2.1.185
PIKE_LIB_DIR=/usr/local/pike/7.2/lib
PIKE_SRC_DIR=/home/stewa/Pike7.2/src
PIKE_BUILD_DIR=/home/stewa/Pike7.2/build
OBJS=fastimho.o
CC=gcc
PIKE_INCLUDES=-I$(PIKE_SRC_DIR) -I$(PIKE_BUILD_DIR)
PREFLAGS=-I. $(PIKE_INCLUDES) $(MODULE_CPPFLAGS) $(DEFINES) -DDYNAMIC_MODULE
CFLAGS=$(PREFLAGS) $(OTHERFLAGS) -g -fpic $(MODULE_CFLAGS) -O2
FastIMHO.so: $(OBJS)
$(CC) $(CFLAGS) -shared -o FastIMHO.so $(OBJS)
install: FastIMHO.so
cp -f FastIMHO.so $(PIKE_LIB_DIR)/modules/
clean:
-rm -f *~ *.o *.so
|