Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 17 - (hide annotations) (download)
Wed Feb 25 13:47:38 2009 UTC (15 years, 1 month ago) by hirohitohigashi
File size: 712 byte(s)
Starting 2nd version of libOftp project. There are new designs.

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     SRCS = sub.c ftp_connect.c ftp_auth.c ftp_passive.c ftp_type.c \
16     ftp_get_buffer.c ftp_put_buffer.c ftp_append_buffer.c
17     OBJS = $(SRCS:.c=.o)
18    
19    
20    
21     $(TARGET): $(OBJS)
22     $(AR) $(ARFLAGS) $(TARGET) $(OBJS)
23    
24    
25     all: $(TARGET) example
26    
27    
28     clean:
29     @rm -f $(TARGET) $(OBJS) *~ *.core
30    
31    
32     example: example1.c $(TARGET)
33     $(CC) $(CFLAGS) -o $@ example1.c $(TARGET)
34    
35    
36    
37     install: $(TARGET)
38     cp $(TARGET) $(INSTDIR)/lib/
39     cp liboftp.h $(INSTDIR)/include/
40    
41    
42     uninstall:
43     rm $(INSTDIR)/lib/$(TARGET)
44     rm $(INSTDIR)/include/liboftp.h

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