equal
deleted
inserted
replaced
|
1 # |
|
2 # Copyright 2004-2006 Intel Corporation |
|
3 # |
|
4 # Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 # you may not use this file except in compliance with the License. |
|
6 # You may obtain a copy of the License at |
|
7 # |
|
8 # http://www.apache.org/licenses/LICENSE-2.0 |
|
9 # |
|
10 # Unless required by applicable law or agreed to in writing, software |
|
11 # distributed under the License is distributed on an "AS IS" BASIS, |
|
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 # See the License for the specific language governing permissions and |
|
14 # limitations under the License. |
|
15 # |
|
16 |
|
17 # |
|
18 # Makefile for DTN2/daemon |
|
19 # |
|
20 |
|
21 # |
|
22 # Make sure SRCDIR is set (.. by default) |
|
23 # |
|
24 ifeq ($(SRCDIR),) |
|
25 SRCDIR := .. |
|
26 BUILDDIR := .. |
|
27 endif |
|
28 |
|
29 DAEMON_SRCS := \ |
|
30 dtnd.cc |
|
31 |
|
32 DAEMON_OBJS := $(DAEMON_SRCS:.cc=.o) |
|
33 |
|
34 # |
|
35 # Default target is to build the daemon |
|
36 # |
|
37 BINFILES := dtnd |
|
38 all: $(BINFILES) |
|
39 |
|
40 COMPONENT_LIBS := \ |
|
41 ../applib/libdtnapisrv.a \ |
|
42 ../servlib/libdtnserv.a \ |
|
43 |
|
44 dtnd: $(DAEMON_OBJS) $(COMPONENT_LIBS) |
|
45 $(CXX) $(CXXFLAGS) $(DAEMON_OBJS) $(COMPONENT_LIBS) \ |
|
46 -o $@ $(LDFLAGS) $(OASYS_LDFLAGS) $(EXTLIB_LDFLAGS) $(LIBS) |
|
47 |
|
48 # |
|
49 # Include the common rules |
|
50 # |
|
51 include ../Rules.make |