1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
CC=i686-sb-gcc OBJ = sftp.o handle.o CFLAGS = -Wall -Wextra -pedantic -Werror LDFLAGS= all: sftp %.o: %.c clang-format -i $< $(CC) -c -o $@ $< $(CFLAGS) sftp: $(OBJ) $(CC) $(LDFLAGS) -o $@ $(CFLAGS) $^ clean: rm sftp $(OBJ)