Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /tags/REL-2.2/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 36 - (hide annotations) (download)
Sun Mar 1 13:40:55 2009 UTC (15 years, 1 month ago) by hirohitohigashi
Original Path: trunk/Makefile
File size: 1000 byte(s)
added ftp_reset() function and fixed some bugs.

1 hirohitohigashi 17 # Makefile
2     #
3     # How to run:
4     # $ make
5     # # make install
6     # $ make clean <- clean
7     # # make uninstall <- uninstall
8    
9     INSTDIR = /usr/local
10 hirohitohigashi 34 TARGET = liboftp.a
11 hirohitohigashi 17
12 hirohitohigashi 33 CFLAGS = -Wall -O2
13 hirohitohigashi 17 ARFLAGS = -rs
14 hirohitohigashi 29 SRCS = sub.c ftp_open.c ftp_user.c ftp_passive.c ftp_timeout.c ftp_type.c ftp_quit.c \
15 hirohitohigashi 36 ftp_site.c ftp_delete.c ftp_rename.c ftp_list.c ftp_nlist.c ftp_reset.c \
16 hirohitohigashi 28 ftp_get_buffer.c ftp_put_buffer.c ftp_get_file.c ftp_put_file.c \
17 hirohitohigashi 32 ftp_get_descriptor.c ftp_put_descriptor.c \
18 hirohitohigashi 24 ftp_mkdir.c ftp_rmdir.c ftp_pwd.c ftp_cd.c
19 hirohitohigashi 17 OBJS = $(SRCS:.c=.o)
20    
21    
22    
23     $(TARGET): $(OBJS)
24 hirohitohigashi 34 $(AR) $(ARFLAGS) $@ $?
25 hirohitohigashi 17
26    
27 hirohitohigashi 34 all: $(TARGET) examples
28 hirohitohigashi 17
29    
30     clean:
31     @rm -f $(TARGET) $(OBJS) *~ *.core
32 hirohitohigashi 34 @cd example ; rm -f example1 example2 *~ *.core
33 hirohitohigashi 17
34    
35 hirohitohigashi 34 examples:
36     cd example; \
37     $(CC) -I.. $(CFLAGS) -o example1 example1.c ../$(TARGET) ; \
38     $(CC) -I.. $(CFLAGS) -o example2 example2.c ../$(TARGET)
39 hirohitohigashi 17
40    
41     install: $(TARGET)
42     cp $(TARGET) $(INSTDIR)/lib/
43     cp liboftp.h $(INSTDIR)/include/
44    
45    
46     uninstall:
47     rm $(INSTDIR)/lib/$(TARGET)
48     rm $(INSTDIR)/include/liboftp.h

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26