CC := gcc
CFLAGS := -D_FILE_OFFSET_BITS=64 -O2 -Wall -Werror -Wextra -ansi -pedantic -std=c90
-CSRC := cstr.c hashtab.c lib.c read.c report.c rule.c variable.c xmake.c
-
all: xmake
clean:
if [ -f xmake ]; then rm -rf xmake; fi
if [ -f xmake.exe ]; then rm -rf xmake.exe; fi
-xmake: $(CSRC)
- $(CC) $(CFLAGS) -o $@ $^
+xmake: cstr.c hashtab.c lib.c read.c report.c rule.c variable.c xmake.c
+ $(CC) $(CFLAGS) -o $@ cstr.c hashtab.c lib.c read.c report.c rule.c variable.c xmake.c