## 
##  TriGem Microsystems, Inc.
##  Motif 2.0 sample Makefile for Linux
##  

##
##           Compiler
CC = gcc

##
##
EXEC =   sample

##
##           Header files
##           Xm   X11  inlcude
INCLUDEDIR= -I/usr/X11R6/include

##
##           Library
##           Xm   X11  library
LIBDIR = -L/usr/X11R6/lib


##
##      -g = Debugging info
##      -O = Optimize
CFLAGS= -O $(INCLUDEDIR) -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE

##
##       Libraries
##       Xm    Motif libray
##
LIBS =  $(LIBDIR) -lXm  -lXt  -lX11 -lXext -lSM -lICE

##
##
OBJECTS= sample.o

##
##       Command to compile and link objects together
##
$(EXEC):     $(OBJECTS)
	$(CC)  -o  $(EXEC)  $(OBJECTS)  $(LIBS)

clean:
	 rm  -f  $(EXEC)  $(OBJECTS)
##
##       End  of  Makefile
##

