mirror of
https://github.com/0intro/wmii
synced 2024-11-30 01:23:12 +03:00
26 lines
400 B
Makefile
26 lines
400 B
Makefile
# libcext - c extensions for wmii project
|
|
# (C)opyright MMIV-MMVI Anselm R. Garbe
|
|
|
|
include ../config.mk
|
|
|
|
SRC = array.c emallocz.c estrdup.c strlcat.c strlcpy.c strtonum.c tokenize.c
|
|
|
|
OBJ = ${SRC:.c=.o}
|
|
|
|
.PREFIXES = .c .o
|
|
|
|
all: libcext
|
|
@echo built libcext
|
|
|
|
.c.o:
|
|
@echo CC $<
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
libcext: ${OBJ}
|
|
@echo AR $@.a
|
|
@${AR} $@.a ${OBJ}
|
|
@${RANLIB} $@.a
|
|
|
|
clean:
|
|
rm -f libcext.a *.o
|