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

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

Everything can now be built from setup.py.

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"
10CONFIG_OPTS=--prefix=$(PREFIX) --without-gzip --without-rfio --enable-authentication=private \
11                CFLAGS=$(DEFS)
12
13BBFTPD=bbftp-server-3.2.0/bbftpd
14BBFTPC=bbftp-client-3.2.0/bbftpc
15
16all: server client
17
18server: $(BBFTPD)/bbftpd
19
20client: $(BBFTPC)/bbftpc
21
22
23
24install:
25        make -C $(BBFTPC) install
26        make -C $(BBFTPD) install
27
28clean: clean_server clean_client
29
30clean_server:
31        -rm $(BBFTPD)/*.o $(BBFTPD)/bbftpd
32
33clean_client:
34        -rm $(BBFTPC)/*.o $(BBFTPC)/bbftp
35
36
37
38
39$(BBFTPC)/Makefile: $(BBFTPC)/configure
40        ( cd $(BBFTPC) ; ./configure $(CONFIG_OPTS) )
41
42$(BBFTPD)/Makefile: $(BBFTPD)/configure
43        ( cd $(BBFTPD) ; ./configure $(CONFIG_OPTS) )
44
45$(BBFTPD)/bbftpd: $(BBFTPD)/Makefile
46        make -C $(BBFTPD)
47
48$(BBFTPC)/bbftpc: $(BBFTPC)/Makefile
49        make -C $(BBFTPC)
Note: See TracBrowser for help on using the repository browser.