commit 460091bfda17592681c9fa8916052669607f9519 parent 4644dc036aed00900e4d156cdf965db2ea480a82 Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Thu, 22 May 2014 13:41:58 +0200 add mkfile to compile highlight.c Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org> Diffstat:
A | mkfile | | | 17 | +++++++++++++++++ |
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/mkfile b/mkfile @@ -0,0 +1,17 @@ +CC = cc +CFLAGS = -Wall -pedantic -std=c99 -Os +LDFLAGS = -s + +TARG = highlight + +all: $TARG + + +&: &.o + $CC $prereq -o $target -Wl,$LDFLAGS + +&.o: &.c + $CC $CFLAGS -c $stem.c + +clean: + rm -f $TARG