2022-05-07 13:18:59 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
|
|
|
STRIP := $(CROSS_COMPILE)strip
|
2022-09-16 16:52:23 +08:00
|
|
|
CFLAGS += -g -Os -Wall
|
2022-05-07 13:18:59 +08:00
|
|
|
LIBS = -lssh
|
|
|
|
OBJ := remote_libssh
|
|
|
|
|
2022-09-16 16:52:23 +08:00
|
|
|
all: main.o aes.o
|
2022-05-07 13:18:59 +08:00
|
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
|
|
|
rm $(OBJ)
|
|
|
|
|