1 # This is the makefile for server of xylftp.
2 # Copyright (C) WANG Cong, May 17, 2007.
5 .PHONY
: all clean debug
8 CFLAGS
= -Wall
-W
-Wcast-align
-Wstrict-prototypes
-Wshadow
13 xylftp
: xylftp.o read_configure.o write_log.o xylsocket.o telnet.o parse_cmd.o do_cmd.o
14 $(CC
) $(CFLAGS
) $(LDFLAGS
) -O2
-Os
-o
$@
$^
17 $(CC
) $(CFLAGS
) -O2
-c
-o
$@
$^
19 read_configure.o
: read_configure.c
20 $(CC
) $(CFLAGS
) -O2
-c
-o
$@
$^
22 write_log.o
: write_log.c
23 $(CC
) $(CFLAGS
) -O2
-c
-o
$@
$^
25 xylsocket.o
: xylsocket.c
26 $(CC
) $(CFLAGS
) -O2
-c
-o
$@
$^
29 $(CC
) $(CFLAGS
) -O2
-c
-o
$@
$^
31 parse_cmd.o
: parse_cmd.c
32 $(CC
) $(CFLAGS
) -O2
-c
-o
$@
$^
35 $(CC
) $(CFLAGS
) -O2
-c
-o
$@
$^
38 rm -f
*.o xylftp xylftp.debug
41 xylftp.debug
: xylftp.h xylftp.c read_configure.c write_log.c xylsocket.c telnet.c parse_cmd.c do_cmd.h do_cmd.c debug.h
42 $(CC
) $(CFLAGS
) $(LDFLAGS
) -DDEBUG
-ggdb
-o
$@
$^
46 touch
/etc
/xylftp
/xylftp.pass
47 install -m
744 ..
/doc
/xylftp.conf
/etc
/xylftp
/
48 install -m
744 .
/xylftp
/usr
/bin
/
52 rm -rf
/usr
/bin
/xylftp