1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
# DO NOT start 'make' in this directory. Go to the top
# directory of the SOCKS package and do it from there!
#=============================================================
OBJS = ident.o id_open.o id_close.o id_query.o id_parse.o
CFLAGS = $(OPTIMIZE) $(OTHER_CFLAGS)
all: echocwd libident.a
libident.a: $(OBJS)
-rm -f libident.a
ar cq libident.a $(OBJS)
$(RANLIB) libident.a
ident.o: ident.c ident.h
id_open.o: id_open.c ident.h
id_close.o: id_close.c ident.h
id_query.o: id_query.c ident.h
id_parse.o: id_parse.c ident.h
install: echocwd
-if [ -d $(LIBDIR) ]; then \
($(INSTALL) -m 644 libident.a $(LIBDIR); \
$(RANLIB) -t $(LIBDIR)/libident.a); fi
-if [ -d $(INCDIR) ]; then \
$(INSTALL) -m 644 ident.h $(INCDIR); fi
install.man: echocwd
-if [ -d $(MANDIR) ]; then \
$(INSTALL) -m 644 ident.3 $(MANDIR); fi
clean: echocwd
-rm -f libident.a *~ core *.o \#*
echocwd:
@pwd
|