home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / book / smakefile < prev    next >
Makefile  |  1996-05-27  |  2KB  |  98 lines

  1. # Makefile for book programs
  2.  
  3.  
  4. # $Id: Makefile,v 1.4 1995/08/01 20:59:05 brianp Exp $
  5.  
  6. ##### MACROS #####
  7.  
  8. INCDIR = /include
  9. GL_LIB = MesaGL.LIB
  10. GLU_LIB = MesaGLU.LIB
  11. TK_LIB = Mesatk.LIB
  12. AUX_LIB = Mesaaux.LIB
  13.  
  14. TMP_FILE = T:MesaTMP_SCOPTS
  15.  
  16. # Only for AMIWIN
  17. XLIBS = X11.LIB
  18. XDIR = x11:sasc
  19. NET_INCLUDE = netinclude:
  20. NET_LIB = netinclude:/netlib/net.lib
  21.  
  22. AMIWINGL_LIBS = lib lib:sc.lib+lib:scm881.lib+$(XDIR)/lib/$(XLIBS)+/lib/$(AUX_LIB)+/lib/$(TK_LIB)+/lib/$(GLU_LIB)+/lib/$(GL_LIB)
  23.  
  24. AMIGAGL_LIBS = lib lib:sc.lib+lib:scmieee.lib+/lib/$(AUX_LIB)+/lib/$(TK_LIB)+/lib/$(GLU_LIB)
  25.  
  26.  
  27. # Removed accpersp and dof 
  28. # since problem with near/far variables being confused with SAS/C internal data types.
  29.  
  30. P1= accanti accnot accum aim alpha alpha3D \
  31.     anti antiindex antipindex antipoint antipoly \
  32.     bezcurve bezmesh bezsurf checker checker2 \
  33.     chess clip colormat cone cube curve \
  34.     depthcue disk dofnot double drawf \
  35.     feedback fog fogindex font light linelist \
  36.     lines list list2
  37.  
  38. P2= maplight material mipmap \
  39.     model movelight nurbs pickdepth pickline \
  40.     picksquare plane planet planetup polys \
  41.     robot sccolorlight scene scenebamb sceneflat \
  42.     select smooth sphere stencil stroke \
  43.     surface tea teaambient teapots texgen texturesurf
  44.  
  45. PROGS = $(P1) $(P2) simple xfont
  46.  
  47. #Missing from amiga version:simple xfont
  48. AMIGAPROGS = $(P1) $(P2)
  49.  
  50. CC = sc
  51.  
  52. AMIWINSCFLAGS = idir=$(INCDIR) idir=$(XDIR)/include data=far idlen=63 \
  53.           nostkchk ignore=a optimize math=68882 cpu=68040 define=AMIWIN
  54.  
  55. AMIGASCFLAGS = idir=$(INCDIR) data=far idlen=63 with=/amiga/SCOPTIONS\
  56.           ignore=a define=AMIGA
  57.  
  58.  
  59. ##### TARGETS ######
  60.  
  61. default: 
  62.     @echo "specify: smake <target>"
  63.     @echo "Where <targets> is one of"
  64.     @echo "       amiga   - Compiles using link library"
  65.     @echo "       library - Compiles using standard library (still beta)"
  66.     @echo "       targets - Compilations for AMIWIN"
  67.  
  68. clean:
  69.     -delete *.o *.lnk *.info
  70.  
  71. realclean: 
  72.     -delete $(P1)
  73.     -delete $(P2)
  74.     -delete xfont simple
  75.     -delete *.o *.lnk *.info
  76.  
  77. amiga: AmigaLIB $(AMIGAPROGS) DeleteTMP
  78.  
  79. library: AmigaLibrary $(AMIGAPROGS) DeleteTMP
  80.  
  81. targets: AMIWIN $(PROGS) DeleteTMP
  82.  
  83.  
  84. AmigaLIB:
  85.     echo >$(TMP_FILE) "$(AMIGASCFLAGS) define=AMIGALIB $(AMIGAGL_LIBS)+/lib/$(GL_LIB)"
  86.  
  87. AmigaLibrary:
  88.     echo >$(TMP_FILE) "$(AMIGASCFLAGS) $(AMIGAGL_LIBS)"
  89.  
  90. AMIWIN:
  91.     echo >$(TMP_FILE) "$(AMIWINSCFLAGS) $(AMIWINGL_LIBS)"
  92.  
  93. DeleteTMP:
  94.     delete $(TMP_FILE)
  95.  
  96. $(PROGS):
  97.     $(CC) WITH=$(TMP_File) link $>.c
  98.