CFLAGS =
CC = arm-linux-gcc
EXEC1 = bvsgetkey
OBJS1 = bvsgetkey.o
SRC1 = bvsgetkey.c
EXEC = bvsdisplay
OBJS = bvsdisplay.o
SRC = bvsdisplay.c
all:$(EXEC) $(EXEC1)
$(EXEC): $(OBJS)
$(CC) -o $(EXEC) $(OBJS)
$(OBJS): $(SRC)
$(CC) -c $(SRC)
$(EXEC1): $(OBJS1)
$(CC) -o $(EXEC1) $(OBJS1)
$(OBJS1): $(SRC1)
$(CC) -c $(SRC1)
clean:
rm -rf *.o *~ $(EXEC) $(EXEC1)
How to Write makefile.pdf
阅读(724) | 评论(0) | 转发(1) |