Cleaned up the Makefiles, improve README about what's required.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091228151958-ehx17nupq3uckhhg
This commit is contained in:
Juan RP 2009-12-28 16:19:58 +01:00
parent 4be79d4535
commit d55391e2e9
4 changed files with 11 additions and 9 deletions

10
README
View File

@ -2,13 +2,17 @@ See http://xbps.nopcode.org/ for information.
To build this you'll need:
- openssl (development package)
- libarchive (development package, all features built in)
- proplib (development package),
- openssl (development package with static libs)
- libarchive (development package with static libs, and all features
built in: acl/attr, xz, bzip2 and zlib are REQUIRED to build the
static binaries!)
- proplib (development package with static lib),
available at http://code.google.com/p/portableproplib
- asciidoc (to build the manpages)
By default it will be installed into /usr/local, can be changed
by setting PREFIX and DESTDIR vars as make(1) arguments.
Just run "make" and "sudo make DESTDIR=~/xbps install".
Good luck!

View File

@ -29,8 +29,7 @@ libfetch:
%.o: %.c
@echo " [CC] $@"
@$(CC) $(CPPFLAGS) $(SHAREDLIB_CFLAGS) $(CFLAGS) \
$(LDFLAGS) $(STATIC_LIBS) -c $<
@$(CC) $(CPPFLAGS) $(SHAREDLIB_CFLAGS) $(CFLAGS) -c $<
libxbps.so: $(OBJS) $(LIBFETCH_OBJS)
@echo " [CCLD] $@"

View File

@ -21,8 +21,7 @@ all: $(INCS) $(GEN) $(OBJS)
%.o: %.c $(INCS) $(GEN)
@echo " [CC] $@"
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
$(SHAREDLIB_CFLAGS) -c $<
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHAREDLIB_CFLAGS) -c $<
ftperr.h: ftp.errors
@echo " [GEN] $@"

View File

@ -1,5 +1,5 @@
OBJS ?= main.o
LDFLAGS += -lxbps
LDFLAGS += -lxbps
.PHONY: all
all: $(BIN) $(BIN).static $(MAN)
@ -31,7 +31,7 @@ endif
%.o: %.c
@echo " [CC] $@"
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -c $<
@$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
$(MAN):
@echo " [ASCIIDOC] $(MAN)"