2012-08-09 04:18:45 +04:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
# You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2012-08-14 08:54:18 +04:00
|
|
|
SRCS=\
|
2012-08-21 00:33:12 +04:00
|
|
|
src/Buffer.cpp \
|
|
|
|
src/BufferedSocket.cpp \
|
|
|
|
src/CommandEventHandler.cpp \
|
2012-08-24 02:01:44 +04:00
|
|
|
src/Hash.cpp \
|
2012-08-21 00:33:12 +04:00
|
|
|
src/Logging.cpp \
|
2012-08-23 20:31:13 +04:00
|
|
|
src/PullFileEventHandler.cpp \
|
2012-08-24 02:01:44 +04:00
|
|
|
src/PushFileEventHandler.cpp \
|
2012-08-21 00:33:12 +04:00
|
|
|
src/Reactor.cpp \
|
2012-08-24 04:23:22 +04:00
|
|
|
src/Registration.cpp \
|
2012-08-21 00:33:12 +04:00
|
|
|
src/SocketAcceptor.cpp \
|
|
|
|
src/Strings.cpp \
|
2012-08-24 02:01:44 +04:00
|
|
|
src/SUTAgent.cpp \
|
|
|
|
src/Subprocess.cpp
|
2012-08-02 22:13:53 +04:00
|
|
|
|
2012-08-14 08:54:18 +04:00
|
|
|
OBJS=$(subst .cpp,.o,$(SRCS))
|
|
|
|
|
|
|
|
all: agent
|
|
|
|
|
|
|
|
agent: $(OBJS)
|
2012-08-21 22:43:56 +04:00
|
|
|
$(LD) -o agent $(OBJS) $(LDFLAGS) $(LDLIBS)
|
2012-08-14 08:54:18 +04:00
|
|
|
|
2012-08-21 22:43:56 +04:00
|
|
|
%.o: %.c
|
2012-08-14 08:54:18 +04:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
|
|
|
clean:
|
2012-08-21 00:43:26 +04:00
|
|
|
rm -f src/*.o agent
|