GNUmakefile.in 1.1 KB
Newer Older
1 2
#
# EMULAB-COPYRIGHT
Leigh B Stoller's avatar
Leigh B Stoller committed
3
# Copyright (c) 2000-2011 University of Utah and the Flux Group.
4 5 6 7
# All rights reserved.
#
SRCDIR		= @srcdir@
TESTBED_SRCDIR	= @top_srcdir@
Leigh B Stoller's avatar
Leigh B Stoller committed
8 9
OBJDIR		= @top_builddir@
SUBDIR		= $(subst $(TESTBED_SRCDIR)/,,$(SRCDIR))
10 11 12

include $(OBJDIR)/Makeconf

13
CXXFLAGS	= -Wall -O2 -I/usr/local/include -ftemplate-depth-40 -g
14
CXXFLAGS	+= $(LDSTATIC)
15 16 17 18 19

all:	dijkstra

include $(TESTBED_SRCDIR)/GNUmakerules

20 21 22 23 24 25 26 27
dijkstra-debug: Compressor.o TreeCompressor.o dijkstra.o \
                NoneCompressor.o VoteIpTree.o SingleSource.o \
                OptimalIpTree.o bitmath.o \
                Compressor.h OptimalIpTree.h VoteIpTree.h \
                Exception.h SetIterator.h bitmath.h \
                IpTree.h SingleSource.h dijkstra.h \
                NoneCompressor.h TreeCompressor.h lib.h

28
	$(CXX) $(CXXFLAGS) Compressor.o TreeCompressor.o dijkstra.o \
29 30
                NoneCompressor.o VoteIpTree.o SingleSource.o \
                OptimalIpTree.o bitmath.o $(LIBS) -o $@
31

32 33
client: all
client-install: client
Timothy Stack's avatar
 
Timothy Stack committed
34
	$(INSTALL_PROGRAM) dijkstra$(EXE) $(DESTDIR)$(CLIENT_BINDIR)/dijkstra$(EXE)
35 36 37 38

clean:
	rm -f *.o dijkstra