Ahoj ...
mam tento makefile
CC = g++
AR = ar
CFLAGS = -Wall
OUTPUT_OPTION = -o $@
COMPILE.cpp = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
%.o : %.cpp \
$(COMPILE.cpp) $(OUTPUT_OPTION) $<
.o.cpp: \
$(CC) $(CFLAGS) -c $(@D)/$(<F) -o $(@D)/$(@F)
# static library
LibArray = Array.a
$(LibArray): source/Array.o source/EArray.o \
$(AR) -rv $(LibArray) $?
zahlasi mi to "make: *** No rule to make target `ar', needed by `Array.a'. Stop." ... vubec nevim co stim ..
dok za rady ...
koudis