4 include $(TOP
)/configs
/current
10 INCDIRS
= -I
$(TOP
)/include $(MOTIF_CFLAGS
) $(X11_INCLUDES
)
13 OBJECTS
= $(GLW_SOURCES
:.c
=.o
)
20 $(CC
) -c
$(INCDIRS
) $(CFLAGS
) $<
26 default
: $(TOP
)/$(LIB_DIR
)/$(GLW_LIB_NAME
)
30 -e
's,@INSTALL_DIR@,$(INSTALL_DIR),' \
31 -e
's,@INSTALL_LIB_DIR@,$(INSTALL_LIB_DIR),' \
32 -e
's,@INSTALL_INC_DIR@,$(INSTALL_INC_DIR),' \
33 -e
's,@VERSION@,$(MAJOR).$(MINOR).$(TINY),' \
34 -e
's,@GLW_PC_REQ_PRIV@,$(GLW_PC_REQ_PRIV),' \
35 -e
's,@GLW_PC_LIB_PRIV@,$(GLW_PC_LIB_PRIV),' \
36 -e
's,@GLW_PC_CFLAGS@,$(GLW_PC_CFLAGS),' \
37 -e
's,@GLW_LIB@,$(GLW_LIB),'
42 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_INC_DIR
)/GL
43 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_LIB_DIR
)
44 $(INSTALL
) -d
$(DESTDIR
)$(INSTALL_LIB_DIR
)/pkgconfig
45 $(INSTALL
) -m
644 *.h
$(DESTDIR
)$(INSTALL_INC_DIR
)/GL
46 $(MINSTALL
) $(TOP
)/$(LIB_DIR
)/$(GLW_LIB_GLOB
) $(DESTDIR
)$(INSTALL_LIB_DIR
)
47 $(INSTALL
) -m
644 glw.
pc $(DESTDIR
)$(INSTALL_LIB_DIR
)/pkgconfig
50 -rm -f depend depend.bak
55 $(TOP
)/$(LIB_DIR
)/$(GLW_LIB_NAME
): $(OBJECTS
)
56 $(MKLIB
) -o
$(GLW_LIB
) -linker
'$(CC)' -ldflags '$(LDFLAGS)' \
57 -major
$(MAJOR
) -minor
$(MINOR
) -patch
$(TINY
) \
58 $(MKLIB_OPTIONS
) -install $(TOP
)/$(LIB_DIR
) \
59 -id
$(INSTALL_LIB_DIR
)/lib
$(GLW_LIB
).
$(MAJOR
).dylib \
60 $(GLW_LIB_DEPS
) $(OBJECTS
)
64 # Run 'make depend' to update the dependencies if you change what's included
67 depend
: $(GLW_SOURCES
)
70 $(MKDEP
) $(MKDEP_OPTIONS
) -I
$(TOP
)/include $(GLW_SOURCES
) \
71 $(X11_INCLUDES
) > /dev
/null