source: TI05-delivery/trunk/src/Makefile @ 1409

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/trunk/src/Makefile@1409
Revision 1409, 1.1 KB checked in by spascoe, 13 years ago (diff)

Added a compiler define which MIGHT fix portability to saturn. All
tests pass on callisto.

RevLine 
[776]1#
[1077]2# Makefile for building bbftp client & server stand alone (without Python API)
3#
[776]4
5PREFIX=$(HOME)/opt/bbftp
[1077]6# Grab the DeliveryService version from the parent directory.
7VERSION:=$(shell cat ../VERSION)
8
[1409]9DEFS="-DNDG_AUTH -DLOCAL_SYSLOG_FACILITY -DNDG_DELIVERY_VERSION=$(VERSION) -g -D_FILE_OFFSET_BITS=64"
[999]10CONFIG_OPTS=--prefix=$(PREFIX) --without-gzip --without-rfio --enable-authentication=private \
[1358]11                --enable-private-logging \
[1077]12                CFLAGS=$(DEFS)
[776]13
14BBFTPD=bbftp-server-3.2.0/bbftpd
15BBFTPC=bbftp-client-3.2.0/bbftpc
16
[1064]17all: server client
18
[1194]19server: $(BBFTPD)/bbftpd
[776]20
[1194]21client: $(BBFTPC)/bbftpc
[1064]22
[776]23
[1194]24
[776]25install:
26        make -C $(BBFTPC) install
27        make -C $(BBFTPD) install
28
[1065]29clean: clean_server clean_client
30
[1281]31#
32# To force a reconfigure
33#
34distclean: clean
35        -rm $(BBFTPD)/Makefile
36        -rm $(BBFTPC)/Makefile
37
[1065]38clean_server:
[1064]39        -rm $(BBFTPD)/*.o $(BBFTPD)/bbftpd
[1065]40
41clean_client:
[1194]42        -rm $(BBFTPC)/*.o $(BBFTPC)/bbftp
43
44
45
46
47$(BBFTPC)/Makefile: $(BBFTPC)/configure
48        ( cd $(BBFTPC) ; ./configure $(CONFIG_OPTS) )
49
50$(BBFTPD)/Makefile: $(BBFTPD)/configure
51        ( cd $(BBFTPD) ; ./configure $(CONFIG_OPTS) )
52
53$(BBFTPD)/bbftpd: $(BBFTPD)/Makefile
54        make -C $(BBFTPD)
55
56$(BBFTPC)/bbftpc: $(BBFTPC)/Makefile
57        make -C $(BBFTPC)
Note: See TracBrowser for help on using the repository browser.