Makefiles: rename lib targets to avoid forced recreation of archives

This commit is contained in:
Georg Neis 2006-03-08 23:34:47 +01:00
parent 94a4f31e25
commit 95b53743de
3 changed files with 15 additions and 15 deletions

View File

@ -9,17 +9,17 @@ OBJ = ${SRC:.c=.o}
.PREFIXES = .c .o
all: libcext
all: libcext.a
@echo built libcext
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
libcext: ${OBJ}
@echo AR $@.a
@${AR} $@.a ${OBJ}
@${RANLIB} $@.a
libcext.a: ${OBJ}
@echo AR $@
@${AR} $@ ${OBJ}
@${RANLIB} $@
clean:
rm -f libcext.a *.o

View File

@ -9,17 +9,17 @@ SRC = client.c convert.c message.c server.c socket.c transport.c
OBJ = ${SRC:.c=.o}
all: libixp
all: libixp.a
@echo built libixp
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
libixp: ${OBJ}
@echo AR $@.a
@${AR} $@.a ${OBJ}
@${RANLIB} $@.a
libixp.a: ${OBJ}
@echo AR $@
@${AR} $@ ${OBJ}
@${RANLIB} $@
clean:
rm -f libixp.a *.o

View File

@ -9,17 +9,17 @@ LDFLAGS += -L../libixp -lixp -L../libcext -lcext
SRC = draw.c geometry.c
OBJ = ${SRC:.c=.o}
all: liblitz
all: liblitz.a
@echo built liblitz
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} $<
liblitz: ${OBJ}
@echo AR $@.a
@${AR} $@.a ${OBJ}
@${RANLIB} $@.a
liblitz.a: ${OBJ}
@echo AR $@
@${AR} $@ ${OBJ}
@${RANLIB} $@
clean:
rm -f liblitz.a *.o