ais/Makefile

17 lines
242 B
Makefile
Raw Permalink Normal View History

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