mirror of
https://github.com/0intro/wmii
synced 2025-01-17 07:39:20 +03:00
Makefiles: rename lib targets to avoid forced recreation of archives
This commit is contained in:
parent
94a4f31e25
commit
95b53743de
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user