home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / ctw11.zip / CTW-1.1 / makefile < prev    next >
Makefile  |  1992-02-24  |  1KB  |  44 lines

  1. # Pretty basic makefile. Please hack to your hearts content.
  2. #
  3. # Type 'make' to build an athena widgets version.
  4. # Type 'make motif' to build a motif version.
  5. #
  6. # Specify where to get include files.
  7. INC=-I$$OPENWINHOME/include -I/homes1/X/include -I/usr/X11R4/usr/include -I../crisp/foxlib
  8.  
  9. # Specify where and what libraries need to be linked.
  10. #LIB=-lXaw -lXmu -lXext -lXt -lX11 -L/usr/X11R4/usr/lib
  11. LIB=-L/usr/X11R4/usr/lib -lXaw -lXmu -lXext -lXt -lX11 
  12.  
  13. PROF=
  14. # Specify which compiler you want.
  15. CC=gcc -pipe -O -g -traditional -W -Wall $(INC) $(PROF) $(STATIC)
  16. #CC=cc -O $(INC) $(PROF) $(STATIC)
  17.  
  18. LINK=cc $(PROF)
  19. H    = fcterm.h ctw.h
  20. OBJ=    \
  21.     term.o \
  22.     ctw.o \
  23.     rotate.o
  24.  
  25. fcterm:    fcterm.o $(OBJ) 
  26.     $(LINK) $(PROF) -o fcterm fcterm.o $(OBJ) $(LIB)
  27.  
  28. motif:
  29.     $(MAKE) LIB="-L/usr/X11R4/usr/lib -lXm -lXt -lX11" motif1
  30.  
  31. motif1:    fmcterm.o motif.o $(OBJ)
  32.     $(LINK) $(PROF) -o fmcterm fmcterm.o motif.o $(OBJ) $(LIB)
  33.  
  34. ctw.o:        ctw.c ctw.h ctwP.h
  35. fcterm.o:    fcterm.c $(H) fcterm.bitmap
  36. term.o:        term.c $(H) fcterm.bitmap
  37. motif.o:    motif.c motif.h
  38.  
  39. prof:
  40.     $(MAKE) LINK="cc -Bstatic -p" PROF=-p STATIC=-Dstaticf=
  41.  
  42. shar:
  43.     shar -o/tmp/ctw -L50 Changes README Xdefaults *.c *.h makefile *.bitmap
  44.