heres my newest make file problem. maybe this will make sense soon.
heres my make file:
Code:
str_remove.o : str_remove.c
gcc -c str_remove.c
ar -cr str_remove.a
ranlib str_remove.a
str_replace.o : str_replace.c
gcc -c str_replace.c
ar -cr str_replace.a
ranlib str_replace.a
str_copy.o : str_copy.c
gcc -c str_copy.c
ar -cr str_copy.a
ranlib str_copy.a
str_count.o : str_count.c
gcc -c str_count.c
ar -cr str_count.a
ranlib str_count.a
str_insert.o : str_insert.c
gcc -c str_insert.c
ar -cr str_insert.a
ranlib str_insert.a
str_move.o : str_move.c str_remove.c str_insert.c
gcc -c str_move.c str_remove.c str_insert.c
ar -cr str_move.a
ranlib str_move.a
.PHONY: all clean
all:
str_remove.o
str_replace.o
str_copy.o
str_count.o
str_insert.o
str_move.o
clean:
rm *.o
rm *.a
when i run make all i get
Code:
str_remove.o
process_begin: CreateProcess(I:\libraries\strings\str_remove.o, str_remove.o, ..
.) failed.
make (e=193): Error 193make: *** [all] Error 193
so can you use rules as functions? whats wrong?