summaryrefslogtreecommitdiffstats
path: root/lib/libftp/utils/Makefile
blob: d750ca7b5a450c02fe523b76c820134bd8051895 (plain)
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
#
# A rather bogus Makefile, but one intended to be used by hand anyway..
#

CFLAGS = -I${.CURDIR} -I${.CURDIR}/.. -DREADLINE
LDADD+=	-L${.CURDIR}
DPADD+=	libetc.a

.if exists(${.CURDIR}/../obj)
LDADD+=	-L${.CURDIR}/../obj
DPADD+= ${.CURDIR}/../obj/libftp.a
.else
LDADD+=	-L${.CURDIR}/..
DPADD+= ${.CURDIR}/../libftp.a
.endif

all: ftptry mirror uftp

ftptry:	ftptry.o
	$(CC) $(CFLAGS) -o ftptry ftptry.o ${LDADD} -lftp

uftp:	uftp.o uftpcmd.o libetc.a
	$(CC) $(CFLAGS) -o uftp uftp.o uftpcmd.o ${LDADD} -lftp -letc

mirror:	mirror.o
	$(CC) $(CFLAGS) -o mirror mirror.o ${LDADD} -lftp

clean: 
	rm -f ftptry mirror uftp *~ *.o *.a

LIBOBJS= readline.o glob.o	
libetc.a: $(LIBOBJS)	
	ar qc libetc.a  $(LIBOBJS)
	ranlib libetc.a
OpenPOWER on IntegriCloud