Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Commit

Permalink
sample: ch12/Makefile: 使用变量
Browse files Browse the repository at this point in the history
  • Loading branch information
mofaph committed Dec 17, 2013
1 parent 2ca02be commit 1f65285
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sample/ch12/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ all: $(PROGRAMS)
hello: hello.o csapp.o
$(CC) $(CFLAGS) $^ $(LIBS) -o $@

hello.o: hello.c ../../common/csapp.h
$(CC) $(CFLAGS) -I../../common -c $< -o $@
hello.o: hello.c $(csapp_h)
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

csapp.o: ../../common/csapp.c ../../common/csapp.h
$(CC) $(CFLAGS) -I../../common -c $< -o $@
csapp.o: $(csapp_c) $(csapp_h)
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@

echoservert: echoservert.o csapp.o echo.o
$(CC) $(CFLAGS) $^ $(LIBS) -o $@
Expand Down

0 comments on commit 1f65285

Please sign in to comment.