#Makefile example
OBJ=main.o test1.o test2.o
CC=gcc
CFLAG=-Wall -g -O
all:hello test
hello:hello.c
gcc -c $< -o $@
test:$(OBJ)
$(CC) $(OBJ) $(CFLAG) -o $@
main.o:main.c
$(CC) -c $< -o main.o
test1.o:test1.c
$(CC) -c $< -o test1.o
test2.o:test2.c
$(CC) -c $< -o test2.o
install:
cp test /home/train
clean:
rm -f *.o
rm -f test
链接表
-
近期文章
近期评论
- daizao发表在《TCGA与dbGaP账号申请(dbGaP申请指南)》
- zzz发表在《TCGA与dbGaP账号申请(dbGaP申请指南)》
- daizao发表在《TCGA与dbGaP账号申请(dbGaP申请指南)》
- liyuqing发表在《TCGA与dbGaP账号申请(dbGaP申请指南)》
- daizao发表在《TCGA与dbGaP账号申请(dbGaP申请指南)》
分类目录
分类目录