home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / go / comp / makefile < prev    next >
Encoding:
Makefile  |  1991-06-04  |  848 b   |  40 lines

  1. LIBS =    -lg++ -lcurses -ltermcap
  2. FLAGS = -O -Wall
  3. OBJ =     genstuff.o iku.o util.o Pattern.o Opponent.o
  4.  
  5. all:    iku smooth
  6.  
  7. iku:    $(OBJ)
  8.     g++ $(FLAGS) -o iku $(OBJ) $(LIBS)
  9.  
  10. iku.o:    iku.h iku.cc
  11.     g++ $(FLAGS) -c iku.cc
  12.  
  13. util.o: iku.h util.cc
  14.     g++ $(FLAGS) -c util.cc
  15.  
  16. Pattern.o: iku.h Pattern.cc
  17.     g++ $(FLAGS) -c Pattern.cc
  18.  
  19. Opponent.o: iku.h Opponent.cc
  20.     g++ $(FLAGS) -c Opponent.cc
  21.  
  22. # genstuff.o ends up holding all the compiled code from libg++.
  23. genstuff.o: iku.h
  24.     genclass -2 Pattern val float val Map
  25.     genclass -2 Pattern val float val CHMap
  26.     genclass Pattern val defs
  27.     genclass Pos val defs
  28.     genclass Pos val SLList
  29.     genclass Pos val SLSet
  30.     genclass Pos val Set
  31.     genclass Block val defs
  32.     genclass Block val DLList
  33.     g++ $(FLAGS) -c genstuff.cc
  34.  
  35. smooth: smooth.c
  36.     cc -O -o smooth smooth.c
  37.  
  38. clean:
  39.     rm -f iku *.o smooth watch *Set* *List* *defs* *Map*
  40.