GNUmakefile.in 793 Bytes
Newer Older
1 2 3 4
#
# Insert Copyright Here.
#
include ../Makeconf
5 6 7

all: assign 

8 9
include ../GNUmakerules

10 11
LEDA=@LEDA@

Mac Newbold's avatar
Mac Newbold committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
OBJS=score.o parse_top.o parse_ptop.o
LIBS+=-L${LEDA} -lD3 -lW -lP -lG -lL -L/usr/X11R6/lib -lX11 -lm -L.
LDFLAGS+= -O3 -fomit-frame-pointer -m486
CXXFLAGS = -I${LEDA}/incl
# Pick one of the two below.
CXXFLAGS += -Wall -O3 -fomit-frame-pointer -m486
#CXXFLAGS += -O0 -g -Wall -DSCORE_DEBUG -DVERBOSE -DSCORE_DEBUG_MORE
DEPLIBS=$(OBJS)

assign: ${DEPLIBS} ${OBJS} assign.o
	${CXX} assign.o -o assign ${LIBS} $(OBJS) ${LDFLAGS}

assign_p: assign.po $(DEPLIBS) $(POBJS) 
	${CXX} assign.po -pg -g -o assign_p ${LIBS} $(POBJS)

assign.po: assign.cc
	${CXX} -c -pg -g -o assign.po assign.cc ${CXXFLAGS}

30 31
install: $(INSTALL_BINDIR)/assign $(INSTALL_LIBDIR)/assign 

Mac Newbold's avatar
Mac Newbold committed
32 33
clean:
	/bin/rm -f *.o assign