44 |
45 |
45 mv Makefile Makefile.old |
46 mv Makefile Makefile.old |
46 sed '/FORCE:/q' Makefile.old > Makefile |
47 sed '/FORCE:/q' Makefile.old > Makefile |
47 echo >> Makefile |
48 echo >> Makefile |
48 for file in `ls *.c` ; do |
49 for file in `ls *.c` ; do |
49 "$CC" -MT "$target/${file/.c/\$(OBJ_EXT)}" -MM $CFLAGS "$file" |
50 "$CC" -MT "$target/${file/.c/\$(OBJ_EXT)}" -MM $CFLAGS $extra_flags "$file" |
50 printf '\t@echo "Compiling $<"\n' |
51 printf '\t@echo "Compiling $<"\n' |
51 printf '\t$(CC) -o $@ $(CFLAGS) -c $<\n\n' |
52 printf '\t$(CC) -o $@ $(CFLAGS) %s -c $<\n\n' "$extra_flags" |
52 done >> Makefile |
53 done >> Makefile |
53 rm Makefile.old |
54 rm Makefile.old |