by enriquto · 8y ago · 0 comments
CFLAGS = -Isrc -O2
LDLIBS = -ldl -lm
SRC = $(shell ls src/cixl/*.c src/cixl/lib/*.c)
OBJ = $(SRC:%.c=%.o)
src/main : src/main.o $(OBJ)
clean : ; $(RM) $(OBJ) src/main
test: src/main ; for i in tests/*; do ./src/main<$$i; done
would you accept such a patch in your project?Sure thing, if you feel like giving the entire makefile the same treatment I'd be delighted to accept it.
Thanks for taking the time!