1 # $XConsortium: Makefile.sun /main/2 1996/05/13 11:47:54 drk $
2 ##########################################################################
4 # Makefile for dtwidget examples (SUN)
6 # (c) Copyright 1993, 1994 Hewlett-Packard Company
7 # (c) Copyright 1993, 1994 International Business Machines Corp.
8 # (c) Copyright 1993, 1994 Sun Microsystems, Inc.
9 # (c) Copyright 1993, 1994 Novell, Inc.
11 ##########################################################################
17 SOURCES = datatyping.c
18 OBJECTS = datatyping.o
22 CFLAGS = $(DEFINES) $(CDEBUGFLAGS)
24 DTINCLUDE = -I/usr/dt/include
25 X11INCLUDE = -I/usr/openwin/include
27 INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
29 DTLIBS = -L/usr/dt/lib -lDtSvc -lXm
30 X11LIBS = -L/usr/openwin/lib -lXt -lX11
31 SYSLIBS = -ldl -lw -lgen
33 LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
34 LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
37 $(CC) -c $(CFLAGS) $(INCLUDES) $<
41 $(PROGRAM):: $(OBJECTS)
42 $(CC) -o $(PROGRAM) $(LDFLAGS) $(OBJECTS) $(LIBRARIES)
45 $(RM) $(PROGRAM) $(OBJECTS)