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.

Line 
1#
2# Makefile for building bbftp client & server stand alone (without Python API)
3#
4
5PREFIX=$(HOME)/opt/bbftp
6# Grab the DeliveryService version from the parent directory.
7VERSION:=$(shell cat ../VERSION)
8
9DEFS="-DNDG_AUTH -DLOCAL_SYSLOG_FACILITY -DNDG_DELIVERY_VERSION=$(VERSION) -g -D_FILE_OFFSET_BITS=64"
10CONFIG_OPTS=--prefix=$(PREFIX) --without-gzip --without-rfio --enable-authentication=private \
11                --enable-private-logging \
12                CFLAGS=$(DEFS)
13
14BBFTPD=bbftp-server-3.2.0/bbftpd
15BBFTPC=bbftp-client-3.2.0/bbftpc
16
17all: server client
18
19server: $(BBFTPD)/bbftpd
20
21client: $(BBFTPC)/bbftpc
22
23
24
25install:
26        make -C $(BBFTPC) install
27        make -C $(BBFTPD) install
28
29clean: clean_server clean_client
30
31#
32# To force a reconfigure
33#
34distclean: clean
35        -rm $(BBFTPD)/Makefile
36        -rm $(BBFTPC)/Makefile
37
38clean_server:
39        -rm $(BBFTPD)/*.o $(BBFTPD)/bbftpd
40
41clean_client:
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.