1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # $XConsortium: Makefile.sun /main/2 1996/05/13 11:54:29 drk $
- ##########################################################################
- #
- # Makefile for dtwidget examples (SUN)
- #
- # (c) Copyright 1993, 1994 Hewlett-Packard Company
- # (c) Copyright 1993, 1994 International Business Machines Corp.
- # (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- # (c) Copyright 1993, 1994 Novell, Inc.
- #
- ##########################################################################
- CC = cc
- RM = rm -f
- PROGRAM1 = occupy
- SOURCES1 = occupy.c
- OBJECTS1 = occupy.o
- PROGRAM2 = wsinfo
- SOURCES2 = wsinfo.c
- OBJECTS2 = wsinfo.o
- DEFINES =
- CDEBUGFLAGS = -O
- CFLAGS = $(DEFINES) $(CDEBUGFLAGS)
- DTINCLUDE = -I/usr/dt/include
- X11INCLUDE = -I/usr/openwin/include
- INCLUDES = $(DTINCLUDE) $(X11INCLUDE)
- DTLIBS = -L/usr/dt/lib -lDtSvc -lXm
- X11LIBS = -L/usr/openwin/lib -lXt -lX11
- SYSLIBS = -ldl -lw -lgen
- LIBRARIES = $(DTLIBS) $(X11LIBS) $(SYSLIBS)
- LDFLAGS = -R/usr/dt/lib:/usr/openwin/lib
- .c.o:
- $(CC) -c $(CFLAGS) $(INCLUDES) $<
- all:: $(PROGRAM1) $(PROGRAM2)
- $(PROGRAM1):: $(OBJECTS1)
- $(CC) -o $(PROGRAM1) $(LDFLAGS) $(OBJECTS1) $(LIBRARIES)
- $(PROGRAM2):: $(OBJECTS2)
- $(CC) -o $(PROGRAM2) $(LDFLAGS) $(OBJECTS2) $(LIBRARIES)
- clean::
- $(RM) $(PROGRAM1) $(OBJECTS1)
- $(RM) $(PROGRAM2) $(OBJECTS2)
|