Closed yebin-yu closed 6 months ago
# Common build variables.
VER =
OFFSET =
CC = gcc
LD = ld
LDSO = $(CC) -shared -nostartfiles
CFLAGS = -fPIC -shared $(OFFSET) -O2
LINKFLAGS = -lpthread -lz
MKDIR = mkdir -p
RM = rm -f
CP = cp -fp
ECHO = echo
FIND = find
MV = mv -f
LN = ln -s
AR = ar -r
ARFLAGS = rv
DEBUG =
LINKFLAGS = ../libgm3000.1.0.so
OBJSMAIN = main.o
MAIN = longmai
# Complie all
all: $(MAIN)
$(MAIN): $(OBJSMAIN)
$(RM) $(MAIN)
$(CC) -o $(MAIN) $(OBJSMAIN) $(LINKFLAGS)
clean:
$(RM) $(MAIN)
$(RM) *.o $(MAIN)
# Complie the source code
%.o: %.c
$(CC) -g -c -o $@ $?
%.o: %.cpp
$(CC) -c -o $@ $?
sshd
ssh
config