[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.4, Sat Oct 14 10:46:05 2000 UTC (17 years ago) by jlim
Branch: MAIN
Changes since 1.3: +12 -0 lines

Fixed Bug 22, removed dependence on POSIX_SOURCE and _XOPEN_SOURCE, conform to
ANSI 'for' scoping rules (Bug 7), added proper type casts, replaced bcopy()
with memcpy(), and eliminated warnings about implicit function definitions.

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

PROGRAM = gview
DEMO = $(PROGRAM)

LTARGETS = getHeader

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

getHeader: $(HF)

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

LDIRT += $(HF)

include $(IVCOMMONRULES)