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 23 - (hide annotations) (download)
Fri Feb 27 14:32:54 2009 UTC (15 years, 1 month ago) by hirohitohigashi
Original Path: trunk/Makefile
File size: 796 byte(s)
added SITE command.

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     TARGET = libOftp.a
11    
12     CFLAGS = -g -Wall -ansi
13     #CFLAGS = -g
14     ARFLAGS = -rs
15 hirohitohigashi 18 SRCS = sub.c ftp_connect.c ftp_auth.c ftp_passive.c ftp_type.c ftp_quit.c \
16 hirohitohigashi 23 ftp_delete.c ftp_site.c \
17     ftp_mkdir.c ftp_rmdir.c ftp_pwd.c ftp_cd.c \
18 hirohitohigashi 17 ftp_get_buffer.c ftp_put_buffer.c ftp_append_buffer.c
19     OBJS = $(SRCS:.c=.o)
20    
21    
22    
23     $(TARGET): $(OBJS)
24     $(AR) $(ARFLAGS) $(TARGET) $(OBJS)
25    
26    
27     all: $(TARGET) example
28    
29    
30     clean:
31     @rm -f $(TARGET) $(OBJS) *~ *.core
32    
33    
34     example: example1.c $(TARGET)
35     $(CC) $(CFLAGS) -o $@ example1.c $(TARGET)
36    
37    
38    
39     install: $(TARGET)
40     cp $(TARGET) $(INSTDIR)/lib/
41     cp liboftp.h $(INSTDIR)/include/
42    
43    
44     uninstall:
45     rm $(INSTDIR)/lib/$(TARGET)
46     rm $(INSTDIR)/include/liboftp.h

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