You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
341 B

4 years ago
SRC:= src/*.c
INCLUDE:=include/
4 years ago
LIB:=lib
BUILD:=build
4 years ago
CFLAGS:= -g -Wall -pedantic
LFLAGS:= -L$(LIB) -lkhash
4 years ago
all: clean test kana-hash
4 years ago
clean:
4 years ago
rm -f $(BUILD)/*
4 years ago
4 years ago
kana-hash:
4 years ago
gcc $(SRC) -I$(INCLUDE) $(CFLAGS) -o $(BUILD)/$@ $(LFLAGS)
4 years ago
$(BUILD)/$@ test
test:
gcc $(SRC) -I$(INCLUDE) -DTEST $(CFLAGS) -o $(BUILD)/$@ $(LFLAGS)
4 years ago
$(BUILD)/$@
4 years ago