Browse Subversion Repository
Contents of /trunk_1/Makefile
Parent Directory
| Revision Log
Revision 15 -
( show annotations)
( download)
Wed Feb 25 13:29:32 2009 UTC
(15 years, 1 month ago)
by hirohitohigashi
File size: 866 byte(s)
renewal all sources.
| 1 |
# 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 |
| 13 |
ARFLAGS = -rs |
| 14 |
SRCS = ftp_str.c ftpauth.c ftpconn.c ftperrors.c ftpquit.c ftpnoop.c \ |
| 15 |
ftpcwd.c ftpdel.c ftprmd.c ftpsystem.c ftpwd.c ftpmkd.c ftprename.c \ |
| 16 |
ftpasv.c ftpget.c ftplist.c ftpnlist.c ftptype.c ftput.c ftpappend.c |
| 17 |
OBJS = $(SRCS:.c=.o) |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
$(TARGET): $(OBJS) |
| 23 |
$(AR) $(ARFLAGS) $(TARGET) $(OBJS) |
| 24 |
|
| 25 |
|
| 26 |
all: $(TARGET) example |
| 27 |
|
| 28 |
|
| 29 |
clean: |
| 30 |
@rm -f $(TARGET) $(OBJS) *~ |
| 31 |
|
| 32 |
|
| 33 |
example: example1.c $(TARGET) |
| 34 |
$(CC) $(CFLAGS) -o $@ example1.c $(TARGET) |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
install: $(TARGET) |
| 39 |
cp $(TARGET) $(INSTDIR)/lib |
| 40 |
mkdir -p $(INSTDIR)/include/liboftp |
| 41 |
cp ftp_main.h $(INSTDIR)/include/liboftp |
| 42 |
|
| 43 |
|
| 44 |
uninstall: |
| 45 |
rm $(INSTDIR)/lib/$(TARGET) |
| 46 |
rm $(INSTDIR)/include/liboftp/ftp_main.h |
| 47 |
rmdir $(INSTDIR)/include/liboftp |
|