[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.5, Sun Oct 29 15:04:15 2000 UTC (17 years ago) by jlim
Branch: MAIN
CVS Tags: release-2_1_5-8
Changes since 1.4: +3 -6 lines

Eliminated or reduced compiler errors and warnings, as tested with
egcs-2.91.66 (on Red Hat 6.0) and gcc 2.96 (on Red Hat 6.2).

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 755 $(DEMO).RUNME $(IVDEMOBINDIR)
	$(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)