сборка по make all

This commit is contained in:
Kolan Sh 2011-05-02 17:29:20 +04:00
parent 27ccb8cd93
commit 6f6bdc2fa8
1 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ OBJECTS=$(SOURCES:%.c=%.o)
CFLAGS+=$(shell pkg-config --cflags liblist)
LDFLAGS+=$(shell pkg-config --libs liblist) -lpthread
all: $(TARGET)
all: $(TARGET) echo-server echo-client
$(OBJECTS): $(SOURCES)
@ -16,8 +16,10 @@ $(TARGET): $(OBJECTS)
echo-server: echo-server.o xerror.o
echo-client: echo-client.o xerror.o
clean:
$(RM) $(OBJECTS) $(TARGET)
$(RM) $(OBJECTS) $(TARGET) echo-server echo-client
.PHONY: all clean