# CROSS_COMPILE = arm-linux-
CC = $(CROSS_COMPILE)gcc
INC=-I../ -I.
LIB=-lpthread -lcrypto
CC_FLAG= -std=gnu99 -Wall
OBJ=tcp.o serial.o wifi.o encrypt.o structure.o main.o
PRG=ser2net
.SUFFIXES: .c .o .cpp
.c.o:
$(CC) -c $*.c -o $*.o $(CC_FLAG) $(INC) $(LIB)
$(PRG):$(OBJ)
$(CC) -o [email protected] $(OBJ) $(CC_FLAG) $(INC) $(LIB)
.PRONY:clean
clean:
@echo "Removing linked and compiled files......"
rm -f $(OBJ) $(PRG)
时间: 2024-11-05 23:28:02