SHELL = /bin/sh
CC = gcc
CFLAGS = -Wall -g
LIBS =
TARGETS = mycat myhead mygrep myls mymkdir myrmdir myln myrm mymv
all: $(TARGETS)
$(TARGETS): %:%.o
<- TAB ->$(CC) -o $@ $< $(LIBS)
.c.o:
<- TAB ->$(CC) -c $(CFLAGS) $<
clean:
<- TAB ->-rm -f $(TARGETS)
<- TAB ->-rm -f *.o *~
0 件のコメント:
コメントを投稿