From 27d6aee9a5933b674c41926874c170317e862b04 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 5 Jul 2005 20:54:18 +0000 Subject: [PATCH] moving over to install.sh build git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@381 9efc2488-bf62-4759-914b-345cdb29e865 --- src/Makefile | 27 ++++++++++++++++++++------- src/libjson/Makefile | 4 ++-- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/Makefile b/src/Makefile index 22e36f7..c0a6986 100644 --- a/src/Makefile +++ b/src/Makefile @@ -3,10 +3,10 @@ # # Change to suit... -export PREFIX = /usr -export APXS2 = /pines/apps/apache2/bin/apxs -export TMP = /tmp/opensrf_build -export APACHE2_HEADERS = /pines/apps/apache2/include +#export PREFIX = /usr +#export APXS2 = /pines/apps/apache2/bin/apxs +#export TMP = /tmp/opensrf_build +#export APACHE2_HEADERS = /pines/apps/apache2/include export TMPDIR = $(TMP)/opensrf @@ -17,11 +17,14 @@ export PERLDIR = $(LIBDIR)/perl5 export INCLUDEDIR = $(PREFIX)/include export CC = gcc export LD_OPTS = -L $(TMPDIR) -L . -export CC_OPTS = -g -Wall -O2 -fPIC -I/usr/include/libxml2 -I$(APACHE2_HEADERS) \ - -I/usr/include/libxml2/libxml -I$(TMP) -I$(TMPDIR) +export CC_OPTS = -g -Wall -O2 -fPIC -I$(LIBXML2_HEADERS) -I$(APACHE2_HEADERS) \ + -I$(LIBXML2_HEADERS)/libxml -I$(TMP) -I$(TMPDIR) -all: prep router srfsh jserver gateway +all: test prep router srfsh jserver gateway + +test: test + echo "TEST TEST TEST" install: install-prep transport-install stack-install gateway-install \ router-install srfsh-install jserver-install perl-install \ @@ -34,18 +37,24 @@ prep: # LIBS # -------------------------------------------------------------------------------- c_utils: prep + echo APXS2=$(APXS2) PREFIX=$(PREFIX) TMP=$(TMP) APCHE2_HEADERS=$(APACHE2_HEADERS) LIBXML2_HEADERS=$(LIBXML2_HEADERS) + @echo -e "\n + c_utils" make -C utils transport: c_utils + @echo -e "\n + transport" make -C libtransport objson: c_utils + @echo -e "\n + objson" make -C objson json: prep + @echo -e "\n + libjson" make -C libjson stack: json objson transport + @echo -e "\n + stack" make -C libstack @@ -53,15 +62,19 @@ stack: json objson transport # BINARIES # -------------------------------------------------------------------------------- router: stack + @echo -e "\n + router" make -C router srfsh: stack + @echo -e "\n + srfsh" make -C srfsh gateway: stack + @echo -e "\n + gateway" make -C gateway jserver: c_utils + @echo -e "\n + jserver" make -C jserver diff --git a/src/libjson/Makefile b/src/libjson/Makefile index 3b53cae..d17ec05 100644 --- a/src/libjson/Makefile +++ b/src/libjson/Makefile @@ -21,8 +21,8 @@ lib: $(LIB_OBJS) cp *.h $(TMPDIR)/$(DEST_INCLUDE)/ install: - mkdir -p $(INCLUDE)/$(DEST_INCLUDE)/ - cp $(TMPDIR)/$(DEST_INCLUDE)/*.h $(INCLUDE)/$(DEST_INCLUDE)/ + mkdir -p $(INCLUDEDIR)/$(DEST_INCLUDE)/ + cp $(TMPDIR)/$(DEST_INCLUDE)/*.h $(INCLUDEDIR)/$(DEST_INCLUDE)/ cp $(TMPDIR)/libjson.so $(LIBDIR)/libjson.so -- 2.11.0