|
发表于 2004-3-15 10:56:48
|
显示全部楼层
一个样本:
Makefile:
OBJS=hello.o
CC=gcc
CFLAGS=-Wall -O -g
a.out (OBJS)
<tab>$(CC) $^ -o $@
hello.o:hello.c hello.h
<tab>$(CC) $(CFLAGS) -c $< -o $@
clean:
<tab>your command...rm and rmdir...
test:
<tab>same as clean..., ... |
|