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

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