2005-11-18 18:54:58 +03:00
|
|
|
# libcext - c extensions for wmii project
|
2006-01-20 17:20:24 +03:00
|
|
|
# (C)opyright MMIV-MMVI Anselm R. Garbe
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
include ../config.mk
|
|
|
|
|
2006-05-04 16:34:44 +04:00
|
|
|
SRC = emallocz.c estrdup.c strlcat.c strlcpy.c strtonum.c tokenize.c trim.c vector.c
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
OBJ = ${SRC:.c=.o}
|
|
|
|
|
|
|
|
.PREFIXES = .c .o
|
|
|
|
|
2006-03-09 01:34:47 +03:00
|
|
|
all: libcext.a
|
2005-11-18 18:54:58 +03:00
|
|
|
@echo built libcext
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
@echo CC $<
|
|
|
|
@${CC} -c ${CFLAGS} $<
|
|
|
|
|
2006-04-03 00:53:56 +04:00
|
|
|
$(OBJ): cext.h
|
|
|
|
|
2006-03-09 01:34:47 +03:00
|
|
|
libcext.a: ${OBJ}
|
|
|
|
@echo AR $@
|
|
|
|
@${AR} $@ ${OBJ}
|
|
|
|
@${RANLIB} $@
|
2005-11-18 18:54:58 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f libcext.a *.o
|