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

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