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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
|
############################################################
#
# rules.mk is A U T O G E N E R A T E D
#
# you must edit: rules.mk.in
#
############################################################
##
## Global Makefile Rules
##
## Before including this file, you must set NEOTONIC_ROOT
##
OSNAME := $(shell uname -rs | cut -f 1-2 -d "." | cut -f 1 -d "-")
OSTYPE := $(shell uname -s)
LIB_DIR = $(NEOTONIC_ROOT)/libs/
## Installation Directories
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
DESTDIR =
cs_includedir = ${includedir}/ClearSilver
## NOTE: The wdb code in util will tickle a bug in SleepyCat 2.4.5,
## which ships with various versions of Linux as part of glibc. If you
## are going to use that code, you should compile against SleepyCat
## 2.7.7 instead
USE_DB2 = 1
USE_ZLIB = 1
@USE_MINGW32@
PICFLG = -fPIC
ifeq ($(OSTYPE),OSF1)
PICFLG =
endif
ifeq ($(OSNAME),MINGW32_NT)
PICFLG =
endif
## -------------- base (Linux/Neotonic) options
PYTHON_INC = @PYTHON_INC@
PYTHON_LIB = @PYTHON_LIB@
PYTHON_SITE = @PYTHON_SITE@
JAVA_PATH = @JAVA_PATH@
JAVA_INCLUDE_PATH = @JAVA_INCLUDE_PATH@
CSHARP_PATH = @CSHARP_PATH@
## Programs
@SET_MAKE@
INSTALL = @INSTALL@
CC = @CC@
MKDIR = mkdir -p
RM = rm -f
CPP = g++
JAVAC = $(JAVA_PATH)/bin/javac
JAVAH = $(JAVA_PATH)/bin/javah
JAR = $(JAVA_PATH)/bin/jar
APXS = @APXS_PATH@
PYTHON = @PYTHON@
PERL = @PERL@
RUBY = @RUBY@
CPPFLAGS = -I$(NEOTONIC_ROOT) @CPPFLAGS@
CFLAGS = @CFLAGS@ -Wall $(CPPFLAGS) $(PICFLG)
OUTPUT_OPTION = -o $@
LD = $(CC) -o
LDFLAGS = -L$(LIB_DIR) @LDFLAGS@
LDSHARED = $(CC) -shared $(PICFLG)
CPPLDSHARED = $(CPP) -shared $(PICFLG)
AR = @AR@ cr
RANLIB = @RANLIB@
DEP_LIBS = $(DLIBS:-l%=$(LIB_DIR)lib%.a)
DBI_LIBS = -ldbi -ldl -lz
LIBS = @LIBS@
LS = /bin/ls
XARGS = xargs -i%
BUILD_WRAPPERS = @BUILD_WRAPPERS@
EXTRA_UTL_OBJS = @EXTRA_UTL_OBJS@
EXTRA_UTL_SRC = @EXTRA_UTL_SRC@
## I don't really feel like writing a configure thing for this yet
ifeq ($(OSNAME),SunOS)
LDSHARED = ld -G -fPIC
endif
## --------------win32 options
## ifeq ($(OSTYPE),WindowsNT)
## CFLAGS += -D__WINDOWS_GCC__
## USE_DB2 = 0
## USE_ZLIB = 0
## # SHELL=cmd.exe
## LS = ls
## PYTHON_INC = -Ic:/Python22/include
## LDSHARED= dllwrap
## endif
##
## ## --------------
##
## ifeq ($(OSTYPE),FreeBSD)
## XARGS = xargs -J%
## # This should work on freebsd... but I wouldn't worry too much about it
## USE_DB2 = 0
## PYTHON_INC = -I/usr/local/include/python2.2
## endif
##
## ifeq ($(USE_ZLIB),1)
## LIBS += -lz
## endif
##
## ifeq ($(USE_DB2),1)
## DB2_INC = -I$(HOME)/src/db-2.7.7/dist
## DB2_LIB = -L$(HOME)/src/db-2.7.7/dist -ldb
## CFLAGS += $(DB2_INC)
## endif
.c.o:
$(CC) $(CFLAGS) $(OUTPUT_OPTION) -c $<
everything: depend all
.PHONY: depend
depend: Makefile.depends
SOURCE_FILES := $(wildcard *.c)
Makefile.depends: $(NEOTONIC_ROOT)/rules.mk Makefile
@echo "*******************************************"
@echo "** Building Dependencies "
@echo "** OSNAME: $(OSTYPE)"
@rm -f Makefile.depends
@touch Makefile.depends
@if test "x" != "x$(SOURCE_FILES)"; then \
for II in "$(SOURCE_FILES)"; do \
gcc -M -MG ${CFLAGS} $$II >> Makefile.depends; \
done; \
fi
@echo "** (done) "
DEPEND_FILE := $(shell find . -name Makefile.depends -print)
ifneq ($(DEPEND_FILE),)
include Makefile.depends
endif
|