# A very simple Makefile EXE := build/qbism OBJ := build/main.o build/qbism.o build/qbe.o HDR := src/qbism.h LIB := -lm all: $(EXE) $(EXE): $(OBJ) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIB) build/%.o: src/%.c $(HDR) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< clean: $(RM) $(wildcard build/*) # vim: set ts=4 tw=80 noet