Hi, I have the following simple Makefile:
CPPFLAGS = -I../inc all: libcc.a libcc.a: libcc.a(die.o) libcc.a(xcalloc.o) libcc.a(xmalloc.o) clean: rm -f *.o *.a which should generate a static library using a default rule. This Makefile works in another systems, and it is accepted by POSIX standards [1]. The rule in /usr/share/mk/sys.mk is: .c.a: ${COMPILE.c} ${.IMPSRC} ${AR} ${ARFLAGS} $@ $*.o rm -f $*.o but when I run make I get this output: $ make cc -O2 -pipe -I../inc -c die.c cc -O2 -pipe -I../inc -c xcalloc.c cc -O2 -pipe -I../inc -c xmalloc.c Anyone could point me what is the problem? Regards, [1] http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html -- Roberto E. Vargas Caballero