diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..ab06a68 --- /dev/null +++ b/makefile @@ -0,0 +1,20 @@ +# Make sure everything compiles. +# +src := genx.c char-props.c + +CC := gcc +CFLAGS := -W -Wall + +# Compile. +# +.PHONY: all +all: $(src:.c=.o) + +%.o: %.c + $(CC) $(CPPFLAGS) $(CFLAGS) -c $< + +# Clean. +# +.PHONY: clean +clean: + rm -f $(src:.c=.o) |