2020-05-29 11:09:39 +08:00
|
|
|
CROSS_COMPILE ?=
|
|
|
|
CC := $(CROSS_COMPILE)gcc
|
|
|
|
STRIP := $(CROSS_COMPILE)strip
|
|
|
|
CFLAGS += -g -O2 -Wall
|
2020-08-16 07:56:52 +08:00
|
|
|
LIBS =
|
2020-05-29 11:09:39 +08:00
|
|
|
OBJ := ais
|
|
|
|
|
|
|
|
all: conf.o ais.o
|
|
|
|
$(CC) $(CFLAGS) -o $(OBJ) $^ $(LIBS)
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CFLAGS) -c $< $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf *.o
|
|
|
|
rm $(OBJ)
|
|
|
|
|