23 lines
310 B
Makefile
23 lines
310 B
Makefile
CROSS_COMPILE ?=
|
|
CC := $(CROSS_COMPILE)gcc
|
|
STRIP := $(CROSS_COMPILE)strip
|
|
CFLAGS += -g -Os -Wall
|
|
LIBS = -lssh
|
|
OBJ := remote_libssh
|
|
|
|
all: main.o aes.o
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean:
|
|
rm -rf *.o
|
|
rm $(OBJ)
|
|
|
|
install:
|
|
cp $(OBJ) /bin/
|
|
|
|
uninstall:
|
|
rm -rf /bin/$(OBJ)
|
|
|