home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / atomart.tar.gz / atomart.tar / Makefile < prev    next >
Makefile  |  1990-06-27  |  839b  |  37 lines

  1.  
  2. LFLAGS = -n
  3. YFLAGS = -d
  4. MFLAGS = -fsingle -f68881 -O4 /usr/lib/f68881/libm.il -pipe
  5. #MFLAGS = -fsingle -g -pipe
  6. CFLAGS = $(MFLAGS) -I../../lib
  7.  
  8. SRCS = gram.c main.c lex.c message.c matrix.c rt.c shade.c stree.c light.c \
  9.     tile.c sphere.c poly.c smalloc.c util.c texture.c noise.c 
  10.  
  11. OBJS = gram.o main.o lex.o message.o matrix.o rt.o shade.o stree.o light.o \
  12.     tile.o sphere.o poly.o smalloc.o util.o texture.o noise.o 
  13.  
  14. atomart: $(OBJS) ../../lib/libvort.a
  15.     cc $(CFLAGS) -o atomart $(OBJS) ../../lib/libvort.a -ll -lm
  16.  
  17. lint: $(SRCS)
  18.     lint $(SRCS) -I../../lib -lm > atomart.lint
  19.  
  20. clean:
  21.     rm -f *.o core
  22.  
  23. clobber:
  24.     rm -f atomart *.o core
  25.  
  26. $(OBJS)\
  27. : atomart.h gram.h macro.h ../../lib/vort.h
  28.  
  29. main.o: random.h
  30.  
  31. gram.c gram.h: gram.y
  32.  
  33. .y.c:
  34.     yacc -d $*.y
  35.     mv y.tab.c gram.c
  36.     if cmp -s y.tab.h $*.h; then rm y.tab.h; else mv y.tab.h $*.h; fi
  37.