home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / gempp15b / makefile < prev    next >
Encoding:
Makefile  |  1993-10-23  |  659 b   |  40 lines

  1. LIBRARY=../lib/gem++.olb
  2. INC=../include
  3.  
  4. SRC=
  5. MAINSRC=example.cc acc.cc
  6. PROGS=example.prg acc.acc
  7. OBJ=$(subst .cc,.o,$(SRC))
  8. LDLIBS=-lgem -lg++
  9. LDFLAGS=
  10.  
  11. GXXINC:=$(INC),$(GXXINC)
  12.  
  13. #C++FLAGS:=$(C++FLAGS) -O2 -W
  14. C++FLAGS:=$(C++FLAGS) -Wall
  15.  
  16. #main:    example.prg
  17.  
  18. all:    $(PROGS)
  19.  
  20. acc.acc: acc.o $(OBJ) $(LIBRARY)
  21.     $(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
  22.  
  23. example.prg: example.o $(OBJ) $(LIBRARY)
  24.     $(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
  25.  
  26. $(PROGS):    $(OBJ)
  27.  
  28. clean:
  29.     rm $(OBJ) $(subst .cc,.o,$(MAINSRC))
  30.  
  31. clobber: clean
  32.     rm $(PROGS)
  33.  
  34. depend:
  35.     -$(CC) -M $(SRC) $(MAINSRC) >/tmp/make.123
  36.     sed 's/[a-z]:[^ ]*//g' \tmp\make.123 >depends
  37.     rm /tmp/make.123
  38.  
  39. include depends
  40.