212 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			212 lines
		
	
	
		
			4.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #
 | |
| # Makefile for XI/X Motif source on SGI
 | |
| # Orca Software distributes these makefiles for convenience.  Having a 
 | |
| # makefile for a particular platform does not imply that you have a
 | |
| # license to use the source code on that platform.  Before using the
 | |
| # source code on any given platform, make sure that you have purchased
 | |
| # the appropriate license.
 | |
| 
 | |
| 
 | |
| XVTIDIR = $(XVT_DSC_DIR)/ptk/include
 | |
| XPOIDIR = $(ROOTP)/include
 | |
| 
 | |
| # Xvt product and system macros.
 | |
| 
 | |
| PRODUCT  = xvtxm
 | |
| SYSTEM   = sgi
 | |
| 
 | |
| # Macros for system utilities.
 | |
| 
 | |
| SHELL    = /bin/sh
 | |
| MAKE     = /bin/make
 | |
| CC       = /usr/bin/cc
 | |
| AR       = /usr/bin/ar
 | |
| ARFLAGS  = cr
 | |
| LD       = /usr/bin/cc
 | |
| LDFLAGS  = -O
 | |
| CD       = cd
 | |
| SED      = /bin/sed
 | |
| YACC     = /bin/yacc -vd
 | |
| CP       = /bin/cp
 | |
| LN       = /bin/ln -s
 | |
| MKDIR    = /bin/mkdir -p
 | |
| MV       = /bin/mv -f
 | |
| RM       = /bin/rm -f
 | |
| TOUCH    = /bin/touch
 | |
| 
 | |
| UIL      = /usr/bin/X11/uil -I$(ROOTP)/include -o
 | |
| 
 | |
| # Macro for 'makedepend' makefile utility.
 | |
| 
 | |
| MKDEP    = /usr/bin/X11/makedepend
 | |
| 
 | |
| # Miscellaneous macros.
 | |
| 
 | |
| STAR     = *
 | |
| SHRSUFF  = UNDEFINED
 | |
| LSUFF    = .a
 | |
| RSUFF	 = .uid
 | |
| 
 | |
| LIBUI    = $(PRODUCT)ui
 | |
| LIBTK    = $(PRODUCT)tk
 | |
| LIBHLP   = $(PRODUCT)help
 | |
| LIBHLPCS = $(PRODUCT)help_cs
 | |
| 
 | |
| XVTBINP  = $(ROOTP)/bin
 | |
| XVTLIBP  = $(ROOTP)/lib
 | |
| 
 | |
| XVTLIBS  = $(XVTLIBP)/lib$(LIBUI)$(LSUFF) $(XVTLIBP)/lib$(LIBHLP)$(LSUFF) $(XVTLIBP)/lib$(LIBTK)$(LSUFF)
 | |
| TKLDLIBS = -L$(XVTLIBP) -l$(LIBUI) -l$(LIBHLP) -l$(LIBTK)  -lMrm -lXm -lXt -lX11
 | |
| 
 | |
| #
 | |
| # Copyright 1993, XVT Software Inc.
 | |
| #
 | |
| # Imakefile for 'xpoxm' archive.
 | |
| #
 | |
| # $RCSfile: makefile.sgi,v $
 | |
| # $Revision: 1.3 $ $Date: 1997-12-18 12:11:04 $
 | |
| #
 | |
| 
 | |
| # Relative paths to build area root directory, source and objects files.
 | |
| 
 | |
| ROOTP    = ..
 | |
| SRCP     = .
 | |
| OBJP	 = ./sgi
 | |
| 
 | |
| # Macros for compiling C source.
 | |
| 
 | |
| IDIRS    =  -I$(XPOIDIR) -I$(XVTIDIR)
 | |
| CFLAGS   = -c -g -O -DXI_USE_XVT -DXI_R4_API -Wf,-XNd8400,-XNp12000 $(IDIRS)
 | |
| 
 | |
| # Library root names.
 | |
| 
 | |
| LIBXI   = ../lib/libxisgi.a
 | |
| 
 | |
| TARGETS  = $(LIBXI)
 | |
| 
 | |
| # Errscan command line for generating new 'xvt_perr.h'.
 | |
| 
 | |
| ERRSCAN  = $(XVTDIR)/errscan -h $(ROOTP)/include/xvt_perr.h -o $(ROOTP)/doc/ERRCODES.TXT $(ROOTP)/include/xvt_msgs.h
 | |
| 
 | |
| # Makefile targets...
 | |
| 
 | |
| default: libtarget
 | |
| 
 | |
| # XI
 | |
| 
 | |
| XISRC = \
 | |
|     $(SRCP)/xi.c \
 | |
|     $(SRCP)/xi2.c \
 | |
|     $(SRCP)/xicf.c \
 | |
|     $(SRCP)/xidbg.c \
 | |
|     $(SRCP)/xiheap.c \
 | |
|     $(SRCP)/xilm.c \
 | |
|                 $(SRCP)/xilm2.c \
 | |
|                 $(SRCP)/xilm3.c \
 | |
|     $(SRCP)/xistx.c \
 | |
|     $(SRCP)/xitext.c \
 | |
|     $(SRCP)/xitree.c \
 | |
|                 $(SRCP)/xierr.c \
 | |
|                 $(SRCP)/xilmst.c \
 | |
|                 $(SRCP)/xiport.c \
 | |
|                 $(SRCP)/xibitmap.c \
 | |
|     $(SRCP)/xiutils.c
 | |
| 
 | |
| XIOBJ = \
 | |
|     $(OBJP)/xi.o \
 | |
|     $(OBJP)/xi2.o \
 | |
|     $(OBJP)/xicf.o \
 | |
|     $(OBJP)/xidbg.o \
 | |
|     $(OBJP)/xiheap.o \
 | |
|     $(OBJP)/xilm.o \
 | |
|     $(OBJP)/xilm2.o \
 | |
|                 $(OBJP)/xilm3.o \
 | |
|     $(OBJP)/xistx.o \
 | |
|     $(OBJP)/xitext.o \
 | |
|     $(OBJP)/xitree.o \
 | |
|                 $(OBJP)/xierr.o \
 | |
|                 $(OBJP)/xilmst.o \
 | |
|                 $(OBJP)/xiport.o \
 | |
|                 $(OBJP)/xibitmap.o \
 | |
|     $(OBJP)/xiutils.o
 | |
| 
 | |
| $(OBJP)/xi.o: $(SRCP)/xi.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xi.o $(SRCP)/xi.c
 | |
| 
 | |
| $(OBJP)/xi2.o: $(SRCP)/xi2.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xi2.o $(SRCP)/xi2.c
 | |
| 
 | |
| $(OBJP)/xicf.o: $(SRCP)/xicf.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xicf.o $(SRCP)/xicf.c
 | |
| 
 | |
| $(OBJP)/xidbg.o: $(SRCP)/xidbg.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xidbg.o $(SRCP)/xidbg.c
 | |
| 
 | |
| $(OBJP)/xiheap.o: $(SRCP)/xiheap.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xiheap.o $(SRCP)/xiheap.c
 | |
| 
 | |
| $(OBJP)/xilm.o: $(SRCP)/xilm.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xilm.o $(SRCP)/xilm.c
 | |
| 
 | |
| $(OBJP)/xilm2.o: $(SRCP)/xilm2.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xilm2.o $(SRCP)/xilm2.c
 | |
| 
 | |
| $(OBJP)/xilm3.o: $(SRCP)/xilm3.c
 | |
|         $(CC) $(CFLAGS) -o $(OBJP)/xilm3.o $(SRCP)/xilm3.c
 | |
| 
 | |
| $(OBJP)/xistx.o: $(SRCP)/xistx.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xistx.o $(SRCP)/xistx.c
 | |
| 
 | |
| $(OBJP)/xitext.o: $(SRCP)/xitext.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xitext.o $(SRCP)/xitext.c
 | |
| 
 | |
| $(OBJP)/xitree.o: $(SRCP)/xitree.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xitree.o $(SRCP)/xitree.c
 | |
| 
 | |
| $(OBJP)/xierr.o: $(SRCP)/xierr.c
 | |
|         $(CC) $(CFLAGS) -o $(OBJP)/xierr.o $(SRCP)/xierr.c
 | |
| 
 | |
| $(OBJP)/xilmst.o: $(SRCP)/xilmst.c
 | |
|         $(CC) $(CFLAGS) -o $(OBJP)/xilmst.o $(SRCP)/xilmst.c
 | |
| 
 | |
| $(OBJP)/xiport.o: $(SRCP)/xiport.c
 | |
|         $(CC) $(CFLAGS) -o $(OBJP)/xiport.o $(SRCP)/xiport.c
 | |
| 
 | |
| $(OBJP)/xibitmap.o: $(SRCP)/xibitmap.c
 | |
|         $(CC) $(CFLAGS) -o $(OBJP)/xibitmap.o $(SRCP)/xibitmap.c
 | |
| 
 | |
| $(OBJP)/xiutils.o: $(SRCP)/xiutils.c
 | |
|   $(CC) $(CFLAGS) -o $(OBJP)/xiutils.o $(SRCP)/xiutils.c
 | |
| 
 | |
| $(LIBXI):  $(XIOBJ)
 | |
|   $(AR) $(ARFLAGS)  $(LIBXI) $?
 | |
| 
 | |
| # Other Stuff
 | |
| 
 | |
| xvt_perr:
 | |
|   @$(RM) $(ROOTP)/include/xvt_perr.h
 | |
|   @$(RM) $(ROOTP)/doc/ERRCODES.TXT
 | |
|   $(ERRSCAN) $(ROOTP)/src/$(STAR).c \
 | |
|   $(ROOTP)/help/common/$(STAR).c $(ROOTP)/help/compiler/$(STAR).c \
 | |
|   $(ROOTP)/help/engine/$(STAR).c $(ROOTP)/help/viewer/$(STAR).c
 | |
| 
 | |
| all: $(TARGETS)
 | |
| 
 | |
| libtarget:  $(TARGETS)
 | |
| 
 | |
| depends:
 | |
|   @echo "making 'depends'..."
 | |
|   @$(MKDEP) -s "# DO NOT DELETE" -p$(OBJP)/ -- $(CFLAGS) -- $(XISRC)
 | |
| 
 | |
| LIBS = $(XVTLIBP)/lib$(LIBXI)$(LSUFF)
 | |
| OBJS = $(XIOBJ)
 | |
| 
 | |
| clean:
 | |
|   @echo "making 'clean'..."
 | |
|   @$(RM) $(LIBS) $(OBJS)
 | |
| 
 | |
| bin:
 | |
| 
 | |
| # DO NOT DELETE THIS LINE -- makedepend depends on it!
 | |
| 
 |