сборка по make all
This commit is contained in:
parent
27ccb8cd93
commit
6f6bdc2fa8
|
@ -8,7 +8,7 @@ OBJECTS=$(SOURCES:%.c=%.o)
|
||||||
CFLAGS+=$(shell pkg-config --cflags liblist)
|
CFLAGS+=$(shell pkg-config --cflags liblist)
|
||||||
LDFLAGS+=$(shell pkg-config --libs liblist) -lpthread
|
LDFLAGS+=$(shell pkg-config --libs liblist) -lpthread
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET) echo-server echo-client
|
||||||
|
|
||||||
$(OBJECTS): $(SOURCES)
|
$(OBJECTS): $(SOURCES)
|
||||||
|
|
||||||
|
@ -16,8 +16,10 @@ $(TARGET): $(OBJECTS)
|
||||||
|
|
||||||
echo-server: echo-server.o xerror.o
|
echo-server: echo-server.o xerror.o
|
||||||
|
|
||||||
|
echo-client: echo-client.o xerror.o
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJECTS) $(TARGET)
|
$(RM) $(OBJECTS) $(TARGET) echo-server echo-client
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue