SOURCE:= src/*.c TEST_SOURCE:= src/test/*.c INCLUDE:= include/ CFLAGS:= -Wall -g --std=gnu99 OBJ:= obj BUILD:= build LFLAGS:= -L./$(BUILD) -lse all: clean libse test clean: rm -f $(BUILD)/* rm -f $(OBJ)/* libse: gcc -c $(SOURCE) -I$(INCLUDE) $(CFLAGS) mv *.o $(OBJ)/ ar rcs $(BUILD)/$@.a $(OBJ)/*.o ranlib $(BUILD)/$@.a test: gcc $(TEST_SOURCE) -I$(INCLUDE) $(CFLAGS) -o $(BUILD)/$@ $(LFLAGS) $(BUILD)/$@