[BACK]Return to GNUmakefile CVS log [TXT][DIR] Up to [Development] / inventor / apps / demos / gview

File: [Development] / inventor / apps / demos / gview / GNUmakefile (download)

Revision 1.6, Sat Jun 1 02:22:20 2002 UTC (15 years, 4 months ago) by jlim
Branch: MAIN
CVS Tags: release-2_1_5-9, release-2_1_5-10, HEAD
Changes since 1.5: +0 -1 lines

Changed main() return type to int and added fix for Bug 148: Modify build
procedure to allow installation in /usr/local.

IVDEPTH = ../../..
include $(IVDEPTH)/make/ivcommondefs

PROGRAM = gview
DEMO = $(PROGRAM)

CXXFILES = \
	gview.c++ DisplayGraph.c++ Error.c++ FieldEditor.c++ \
	GraphIcon.c++ GraphViewer.c++ NodeCreator.c++

LLDLIBS = -lInventor -lInventorXt

all: all_ivbin

install: install_ivdemo
	$(INSTALL) -m 644 windmill.iv $(IVDEMODATADIR)
	$(INSTALL) -m 644 gviewIcons.iv $(IVDEMODATADIR)

HF = gviewIcons.iv.h
LTARGETS = $(HF)

$(HF): %.h: %
	(echo "const char gviewIcons[] ="; \
	sed -e '{ s/"/\\"/g; s/^/"/; s/$$/\\n"/; }' $^; echo \;) > $^.h

LDIRT += $(HF)

include $(IVCOMMONRULES)