Cleaned up the Makefiles, improve README about what's required.
--HG-- extra : convert_revision : xtraeme%40gmail.com-20091228151958-ehx17nupq3uckhhg
This commit is contained in:
parent
4be79d4535
commit
d55391e2e9
10
README
10
README
@ -2,13 +2,17 @@ See http://xbps.nopcode.org/ for information.
|
|||||||
|
|
||||||
To build this you'll need:
|
To build this you'll need:
|
||||||
|
|
||||||
- openssl (development package)
|
- openssl (development package with static libs)
|
||||||
- libarchive (development package, all features built in)
|
- libarchive (development package with static libs, and all features
|
||||||
- proplib (development package),
|
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
|
available at http://code.google.com/p/portableproplib
|
||||||
- asciidoc (to build the manpages)
|
- asciidoc (to build the manpages)
|
||||||
|
|
||||||
By default it will be installed into /usr/local, can be changed
|
By default it will be installed into /usr/local, can be changed
|
||||||
by setting PREFIX and DESTDIR vars as make(1) arguments.
|
by setting PREFIX and DESTDIR vars as make(1) arguments.
|
||||||
|
|
||||||
|
Just run "make" and "sudo make DESTDIR=~/xbps install".
|
||||||
|
|
||||||
Good luck!
|
Good luck!
|
||||||
|
@ -29,8 +29,7 @@ libfetch:
|
|||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
@$(CC) $(CPPFLAGS) $(SHAREDLIB_CFLAGS) $(CFLAGS) \
|
@$(CC) $(CPPFLAGS) $(SHAREDLIB_CFLAGS) $(CFLAGS) -c $<
|
||||||
$(LDFLAGS) $(STATIC_LIBS) -c $<
|
|
||||||
|
|
||||||
libxbps.so: $(OBJS) $(LIBFETCH_OBJS)
|
libxbps.so: $(OBJS) $(LIBFETCH_OBJS)
|
||||||
@echo " [CCLD] $@"
|
@echo " [CCLD] $@"
|
||||||
|
@ -21,8 +21,7 @@ all: $(INCS) $(GEN) $(OBJS)
|
|||||||
|
|
||||||
%.o: %.c $(INCS) $(GEN)
|
%.o: %.c $(INCS) $(GEN)
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) \
|
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHAREDLIB_CFLAGS) -c $<
|
||||||
$(SHAREDLIB_CFLAGS) -c $<
|
|
||||||
|
|
||||||
ftperr.h: ftp.errors
|
ftperr.h: ftp.errors
|
||||||
@echo " [GEN] $@"
|
@echo " [GEN] $@"
|
||||||
|
4
prog.mk
4
prog.mk
@ -1,5 +1,5 @@
|
|||||||
OBJS ?= main.o
|
OBJS ?= main.o
|
||||||
LDFLAGS += -lxbps
|
LDFLAGS += -lxbps
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: $(BIN) $(BIN).static $(MAN)
|
all: $(BIN) $(BIN).static $(MAN)
|
||||||
@ -31,7 +31,7 @@ endif
|
|||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
@$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(STATIC_LIBS) -c $<
|
@$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
||||||
|
|
||||||
$(MAN):
|
$(MAN):
|
||||||
@echo " [ASCIIDOC] $(MAN)"
|
@echo " [ASCIIDOC] $(MAN)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user