home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / voglw.zip / makefile < prev    next >
Makefile  |  1997-02-13  |  2KB  |  84 lines

  1. #
  2. # Make the vogl library.
  3. #
  4. # Below are our defaults for compliers etc. These are set in the
  5. # main Makefile.
  6. #
  7.  
  8. CC = cc
  9.  
  10. # Hack because our version of gcc produces code which the gnu as 
  11. # program can't eat. Until someone installs the patcehs then we'll
  12. # use the normal sun as.
  13. #
  14. #.c.o:
  15. #    $(CC) -S $(CFLAGS) $*.c
  16. #    as -o $*.o $*.s
  17.  
  18. MCFLAGS = -g -fsingle
  19.  
  20. LIB = libvogl.a
  21.  
  22. RANLIB = ranlib        # = "ar ts" for SYS5
  23.  
  24. #DEVICES = -DSUN -DTEK -DHPGL -DPOSTSCRIPT -DPOSTSCRIPTP -DDXY
  25. DEVICES = -DSUN
  26.  
  27. DOBJS = ../drivers/sun.o
  28.  
  29. HDRS =    vogl.h
  30.  
  31. CSRC =    arcs.c attr.c buffer.c clip.c curves.c draw.c drivers.c \
  32.     viewing.c viewp.c mapping.c matrix.c move.c objects.c patches.c \
  33.     points.c polygons.c rect.c tensor.c text.c newtokens.c trans.c \
  34.     scale.c getgp.c valloc.c yobbarays.c pref.c vcalls.c \
  35.     queue.c lines.c
  36.  
  37. COBJS =    arcs.o attr.o buffer.o clip.o curves.o draw.o drivers.o \
  38.     viewing.o viewp.o mapping.o matrix.o move.o objects.o patches.o \
  39.     points.o polygons.o rect.o tensor.o text.o newtokens.o trans.o \
  40.     scale.o getgp.o valloc.o yobbarays.o pref.o vcalls.o \
  41.     queue.o lines.o
  42.  
  43.  
  44. FOBJS =    sunfort/farcs.o sunfort/fattr.o sunfort/fcurves.o \
  45.     sunfort/fdraw.o sunfort/fdrivers.o sunfort/fgetgp.o  \
  46.     sunfort/fviewing.o sunfort/fviewp.o sunfort/fmatrix.o sunfort/fmove.o \
  47.     sunfort/fobjects.o sunfort/fpatches.o sunfort/fpoints.o sunfort/fpoly.o\
  48.     sunfort/frect.o sunfort/ftrans.o sunfort/fyobbarays.o sunfort/ftext.o \
  49.     sunfort/fbuffer.o sunfort/fpref.o sunfort/fqueue.o sunfort/fvcalls.o \
  50.     sunfort/fbgnend.o sunfort/flines.o
  51.  
  52. CFLAGS= $(DEVICES) $(MCFLAGS)
  53. LINTFLAGS=
  54.  
  55.  
  56. $(LIB): $(DOBJS) $(COBJS) $(FOBJS) vogl.h
  57.     rm -f $@
  58.     ar rcv $@ $(DOBJS) $(COBJS) $(FOBJS)
  59.     $(RANLIB) $@
  60.  
  61. lint:
  62.     lint -hac $(DEVICES) $(CSRC) sunfort/*.c -I. -lm > vogl.lint
  63.  
  64. clean:
  65.     rm -f $(COBJS) core
  66.     cd sunfort; make clean
  67.     cd ../drivers; make clean
  68.  
  69. clobber:
  70.     rm -f $(LIB) $(COBJS) $(FOBJS) core *.lint
  71.     cd sunfort; make clean
  72.  
  73. $(COBJS): vogl.h
  74.  
  75. $(FOBJS): vogl.h
  76.     cd sunfort; make -f Makefile MCFLAGS="$(MCFLAGS)"
  77.  
  78. $(DOBJS): vogl.h
  79.     cd ../drivers; make -f Makefile \
  80.             "CC=$(CC)" \
  81.             MCFLAGS="$(MCFLAGS)" \
  82.             DOBJS="$(DOBJS)"
  83.  
  84.