uuprog

view configure @ 0:4f628556fa3e

uuprog initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 25 Aug 2011 08:53:01 +0300
parents
children
line source
1 #!/bin/sh
3 echo 'CC = gcc' >Makefile
4 echo 'CFLAGS = -pedantic -Wall -g' >>Makefile
5 echo >>Makefile
7 allfiles=`echo *.c | sed 's/\.c//g'`
9 echo '.PHONY: all' >>Makefile
10 echo "all: $allfiles" >>Makefile
11 echo >>Makefile
13 for i in *.c; do
14 bname=`basename $i .c`
16 echo "$bname: $bname.o" >>Makefile
17 done
19 echo >>Makefile
20 echo '.PHONY: clean' >>Makefile
21 echo 'clean:' >>Makefile
22 echo " rm -f $allfiles *.o" >>Makefile
24 echo >>Makefile
25 echo '.PHONY: distclean' >>Makefile
26 echo 'distclean: clean' >>Makefile
27 echo ' rm -f Makefile' >>Makefile