X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=mkfile;h=dc180674b4d5516d9d25bd4cf988a7ee1d967efb;hb=dd93f3cd564549ffd28f5647f443d5a4f7b8df20;hp=1f156888129d7a0a378b6f593599db3ae89bf950;hpb=e9e756464f578c44e83595a6b96095455553f67a;p=~andy%2Faweather-web diff --git a/mkfile b/mkfile index 1f15688..dc18067 100644 --- a/mkfile +++ b/mkfile @@ -1,14 +1,11 @@ CT=/scratch/ct/ct CFLAGS='--std=c99 -Wall' -PKG_FLAGS=`{pkg-config --cflags glib-2.0} -PKG_LIBS=`{pkg-config --libs glib-2.0} - index.cgi: index.o html.o gcc $CFLAGS -o $target $prereq $PKG_LIBS -%.o: %.c - gcc $CFLAGS $PKG_FLAGS -c -o $target $prereq +%.o: %.c html.h + gcc $CFLAGS $PKG_FLAGS -c -o $target $stem.c %.c: %.ct $CT -o $target $prereq